I am learning to use Bluemix and was trying to access my application using the Cloud Foundry command-line interface. But after logging in using my Bluemix ID at the CF CLI, I am not able to target the organization. On the Bluemix dashboard in my browser, the organization is visible. Is there a bug?
After running cf login some organisation should have been set as the target.
Run cf target to get the current target information
Run cf orgs to get the available organisations
Run cf spaces to get the available spaces in the organisation
Run cf target -o organisation_name -s space_name to target the correct organisation and space
Each organisation can have multiple spaces. Each space can have multiple applications. With the correct organisation and space set as targets the currently deployed applications can be listed with cf apps.
Organisations can span regions but may not. Check if the organisation is present in other regions by changing the API endpoint.
US South https://api.ng.bluemix.net
UK https://api.eu-gb.bluemix.net
Sydney https://api.au-syd.bluemix.net
change the region API endpoint to the region that appears in your account
Related
I am trying to install Kubeflow on Google Cloud Platform (GCP) and Kubernetes Engine (GKE), following the GCP deployment guide.
I created a GCP project of which I am the owner, I enabled billing, set up OAuth credentials and enabled the following APIs:
Compute Engine API
Kubernetes Engine API
Identity and Access Management (IAM) API
Deployment Manager API
Cloud Resource Manager API
Cloud Filestore API
AI Platform Training & Prediction API
However, when I want to deploy Kubeflow using the UI, I get the following error:
So I doublechecked and those APIs are already enabled:
The log messages at the bottom of the screen are:
2020-03-0614:14:04.629: Getting enabled services for project <projectname>..
2020-03-0614:14:16.909: Could not configure communication with GCP, exiting
The Could not configure communication with GCP, exiting is triggered when _enableGcpServices() fails.
The line Getting enabled services for project ... is printed but not the line Proceeding with project number: ..., so the error must be triggered somewhere in the block of code between those lines.
The call to Gapi.cloudresourcemanager.getProjectNumber(project) has its own try/catch with a slightly different error message and title (only talks about the cloud resource manager API, not the IAM API), so I assume it is the call to Gapi.getSignedInEmail() that fails??
I'd suggest having a look at the service management API, IAM service credentials API and cloud identity aware proxy API possibly. I've only used the CLI install tool previously and not run into these problems, but you might require these services for the IAP deployment?
I faced the same issue and was able to solve by correcting the project id.
Make sure that the project id on the UI form is specified correctly as it is on the GCP project - and that it does not have any leading or trailing spaces if you copy pasted from the GCP project details like I did.
I had the same issue. I was using in trial. Seems they allow a limited project to use billing account at same time. So I shut down unused ones . Went to Billing-->my projects. Disabled unused with 3 dots. Then tried to enable the billing account for current project. It worked.
setting up Ibm-cloud organization
I was trying to do "ibmcloud cf push" for the simple project that I found in github but it shows me "No org targeted"! I tried to just set the organization that I can find in my account in IBM-cloud> cloud foundry orgs which is my email address so I tried to use "cf target -o ORG" but it shows "Could not get org"!
API endpoint: https://cloud.ibm.com
Region: us-east
User: XXX#yahoo.com
Account: sonia's Account (XXXX)
Resource group: Default
CF API endpoint: https://api.us-east.bluemix.net (API version: 2.128.0)
Org:
Space:
I solved it!!!
first I unset my region and set it to the south-us
after that, I could use those commands for setting the organization and space
ibmcloud target -o Myorg
If you want to be able to push Cloud Foundry applications in a different region, you can add a space to your org in that region. That way you are then able to target your default org in different regions.
Within the cloud.ibm.com UI navigate to "Manage->Account" and then on the menu on the left select "Cloud Foundry Orgs". You will see a list of Cloud Foundry organizations. If you select an org in the next screen you can add a Cloud Foundry space to that org and choose the region where you want to create the space.
After you have done that you are able to target the CF org and CF space in the new region.
I usually use:
ibmcloud target --cf
For a friendly menu.
Make sure you login to the same region as your account. Use the login passcode from the console UI profile menu to login and choose the right location. When i did so my org was populated correctly in the CLI.
When I tried ibmcloud target --cf to deploy my app on my IBMcloud account .. I got No organisation found error...
I even tried to create a new organization but got failed.
https://imgur.com/HNnaRf2
After some debugging I got to know I have created my IBM cloud account in eu region(We have to select a location at the time of account creation) and I tried to deploy my app/creating the organization in us-south region that's why it was throwing error.
After that i changed my region in ibm console
by
ibmcloud api https://api.eu-gb.bluemix.net
and login again.
and app gets deployed successfully.
I searched on google but havent got anything about how to change your default user account region.
I go through the link but seems like it will change my api endpoint to a specific region not my account's default region.
Changing Bluemix Account Default region?
ibmcloud target -r REGION_NAME
ibmcloud target -r us-south
I tried to setup the Hyper Protect Crypto Services in IBM Cloud. After I provisioned an instance, setup the IBM CLI, I attempted to run some of the TKE commands from the getting started page. But when I run this command, it fails with:
ibmcloud tke domains
FAILED
API endpoint not recognized when determining target URLs.
it looks like you might not be connected to the correct API Endpoint. You can run 'ibmcloud api' to see what your current API Endpoint is set to. Hyper Protect Crypto is currently only available in the us-south region, so the endpoint you need would be https://api.ng.bluemix.net.
To set this region you would issue 'ibmcloud api https://api.ng.bluemix.net' The ng part determines the region you are in, so later on if you are in dallas or australia, it would be a different endpoint name.
I am new to API connect and I'm trying to create a simple loopback application and publish the product and API to bluemix.
Steps I've followed so far:-
On Bluemix:-
Added a API connect service to my organization ('subhash.pesh#gmail.com'), US South region and and test space.
Default Sandbox catalog created in APIConnect.
On Local machine:-
Got the APIC CLI
Created a loopback app by running: apic loopback
Ran the API designer by using apic edit
Express server started listening in on a port and the GUI editor opened up in my default browser.
Tried to publish the product by adding a bluemix target.
Here is where I'm facing the issue:
I'm able to enter my bluemix credentials and it chooses US South region by default, but I'm not able to see any organizations within the next dropdown.
I've tried doing this while the app is running locally and while it's stopped (I dont think it should make any difference, but I was getting desperate)
Ive attached the pictures of the publishing option/ empty organization dropdown here:-
Organization dropdown can be seen here
Unable to see any of my organizations, dropdown is blank
I'm sure I'm missing something vital, but I'm just not able to figure this out.
I've tried going through the documentations and video tutorials and by their account, I should be able to select the organizations and then the catalog to which I want to publish the API.
EDIT: I observed something while trying to publish from CLI:
After logging in to us.apiconnect.ibmcloud.com, when I run
apic orgs --server us.apiconnect.ibmcloud.com
I get a blank response.. Not sure why my bluemix organizations are not being recognized
And when I run
apic catalogs --all-organizations --server us.apiconnect.ibmcloud.com
I get
Error: No catalogs found in all organizations
Error: No catalogs found in org null