Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to call wsk subcommands #196

Open
matthewdickinson opened this issue Apr 12, 2023 · 2 comments
Open

Unable to call wsk subcommands #196

matthewdickinson opened this issue Apr 12, 2023 · 2 comments

Comments

@matthewdickinson
Copy link

I'm trying to generate the .wskprops file, but am unable to do so. I've logged in via ibmcloud login, but the commands I've seen referenced throw errors indicating that I need to use CloudFoundry.

All of the commands below

ibmcloud fn list
ibmcloud fn api
ibmcloud fn property get --auth

generate

A target Org and Space must be specified. Use 'ibmcloud target --cf' or 'ibmcloud target -o ORG -s SPACE' to set these values.

However, it appears that CloudFoundry is deprecated? Am I doing something wrong, is this a bug, or is the OpenWhisk interface no longer supported?

@azieseme
Copy link

Hi @matthewdickinson .
Until deprecated CloudFoundry and its Orgs/Spaces are fully gone we'll likely keep seeing traces of it.

Since I see you ask for fn api, note that support for Functions' API Gateway ended by September 2022 (compare https://www.ibm.com/cloud/blog/announcements/api-gateway-migration-options-for-ibm-cloud-function-users).

To run the three commands above successfully, you first need to target either your IAM-based Cloud Functions namespace (which requires targeting resource group first) or your CF-based Cloud Functions namespace (which requires targeting your CF org/space first).

Also, I think auth in fn property get --auth is specific to CF-based namespaces, not relevant / not needed for IAM-based namespaces.

To give you an example:

# IAM-based namespace
ibmcloud login -r <region> -g <resource-group>
ibmcloud fn namespace list   # allows to see both CF-based and IAM-based namespaces
ibmcloud fn namespace target <fn-namespace>
ibmcloud fn list

# CF-based namespace
ibmcloud login -r <region> -o <org> -s <space>
ibmcloud fn list

@matthewdickinson
Copy link
Author

OK. So that appears to let me target those functions from the CLI! Thanks!

So, given the lack of functional ibmcloud fn property get --auth command, I am correct in understanding that it's no longer possible to manage functions with OpenWhisk enabled tools (e.g. Serverless Framework)? It doesn't seem like a huge deal, but I'd like to be clear if that's not an unsupported use-case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants