Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

We have a working openstack (grizzly) cloud and want configure juju to work with it. I follows https://help.ubuntu.com/community/UbuntuCloudInfrastructure. But I can not find "Juju Environment Config" in horizon/settings page (Only User Settings is available). The API Endpoints has services:

    Compute
    Network
    Image
    Volume
    EC2
    Identity

I also can download OPenStack RC file and EC2 Credentials
But what I should put in environments.yaml?
I got error when try to bootstrap:

ERROR failed to GET object provider-state from container juju-aced10adfad7e3020fbc207e0d70aee6
caused by: authentication failed
caused by: failed executing the request https://:/v2.0//tokens
caused by: Post https://:/v2.0//tokens: local error: record overflow

The auth_url is correct which I got from API Endpoints as well as OpenStack RC file.

share|improve this question
    
I need remove .juju/environments/openstack.jenv otherwise any update in environments.yaml doesn't take effect. But know I get "RegionOne" does not allow access to all required services error due to no swift on this openstack –  user235342 Jan 30 at 23:05
    
I think I need post this to OpenStack forum. I did enable "EABLE_JUJU_PANEL = True" in /etc/openstack-dashboard/local_settings.py. But if anyone know how to work-around this by using OpenStack RC file and EC2 Credential package on Juju side (environments.yaml) let me know. Thanks –  user235342 Jan 31 at 12:55

1 Answer 1

Some observations about your setup:

  • The guide you were following is unfortunately outdated and incorrect in places. It refers using the Python version of juju, not the currently supported and maintained juju-core.
  • Try removing your environments.yaml from ~/.juju and also make sure you remove any ~/.juju/environments/*.jenv (beware, that if you remove the .jenv' file of a running environment, you are effectively cutting your access to that cloud from Juju). Then, runjuju init, which will generate you a boilerplateenvironments.yaml`, containing the annotated set of most supported provider/cloud-specific configuration settings, commented as needed to indicate their default values, if any.
  • Here's a very good guide on setting up a Juju OpenStack environment.
  • You shouldn't need to use EC2-compatible API and credentials, just your OpenStack ones, the same you use to login to horizon or through nova client.
  • Using a file like the suggested OpenStack RC file, Juju can go with minimal configuration, taking all other settings through the exported environment variables.
share|improve this answer
    
Thanks for reply. But our OpenStack doesn't have swift component. What should I set for "control-bucket"? –  user235342 Feb 24 at 17:12
    
Unfortunately, the openstack provider in juju-core currently requires Swift to be present and listed in Keystone as an endpoint. There are plans to make it possible to configure the compute and storage parts of an environment separately, so that the cloud doesn't need to have storage enabled, but it's not a priority presently. You're welcome to file a bug against juju-core, so at least the progress on it can be tracked: bugs.launchpad.net/juju-core –  dimitern Feb 24 at 17:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.