apigee / istio-mixer-adapter

Apigee's Istio Mixer Adapter
Apache License 2.0
53 stars 22 forks source link

apigee-istio provision command doesn't work #205

Closed stevehu closed 5 years ago

stevehu commented 5 years ago

I was following the tutorial from Srinandan at https://github.com/srinandan/istio-workshop/tree/master/apimanagement to integrate Istio with Apigee Edge gateway. The following command line failed with authorization error even I am the organization admin.

apigee-istio -u {your username} -p {your password} -o {your organization name} -e {your environment name} provision > samples/apigee/handler.yaml

The error message is

error retrieving or creating kvm: error checking for kvm istio, status code: 401

The workaround for me is to download/compile the source code from the master branch and call the same command line. It works and I got the result in the console. I have to manually update the handler.yaml on my Istio cluster manually though.

It looks like the released apigee-istio is not the latest version or maybe some of the dependencies are changed when I build locally.

For more details, please refer to this issue

theganyo commented 5 years ago

I don't know of any reason why you'd get that other than a bad username or password. You might try again with release 1.0.3. Also double-check that the username you are using is your full email address, not just the name part. If you still have issues, try running with the "--verbose" option.

stevehu commented 5 years ago

It is OK. We built our own copy from the master branch and it worked. Good to know we have a new release. We'll try that for the next installation. Thanks.

lukemao commented 5 years ago

still getting this error in 1.0.3. I am doing apigee-istio in a terraform script:

export APIGEEORG="${var.apigee_org}"
export APIGEEENV="${var.apigee_env}"
export APIGEEUSERNAME="${var.apigee_username}"
export APIGEEPWD="${var.apigee_password}"

apigee-istio provision -o $APIGEEORG -e $APIGEEENV -u $APIGEEUSERNAME -p $APIGEEPWD > samples/apigee/handler.yaml

deepikarawal commented 4 years ago

I am also facing the same issue. Could you share the steps that you followed to compile the source code from master branch ?

stevehu commented 4 years ago

The problem has been fixed in the later version. I don't think it is the same issue any more.

deepikarawal commented 4 years ago

I am facing the same issue with latest apigee/istio-mixer-adapter i.e. 1.2.0. My istio version is 1.3.0