icclab / vagrant-devstack

This project will allow you automate the creation of a VM with devstack installed and running. It uses vagrant to create the VM and puppet to configure the VM so all required software is installed and running.
http://www.cloudcomp.ch
21 stars 14 forks source link

glance: error: argument --os-auth-token: expected one argument #4

Open Wesseldr opened 11 years ago

Wesseldr commented 11 years ago

Impressive work, thank you very much for sharing this :-) hope this little bug can be worked around. It helped me a lot to learn more about vagrant & puppet

Enviroment:

OsX: 10.8.4 / 16G
VirtualBox: 4.2.16 r86992
Vagrant: 1.2.2

Pitty it looks like the devstack is broken ? So not sure if there is anything that can be done here but I thought letting you know anyway.

During the run of site.pp the stack.sh script breaks on the command:

glance: error: argument --os-auth-token: expected one argument

Below the last part of the deployment.

notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: + glance --os-auth-token --os-image-url http://10.1.2.44:9292 image-create --name precise-server-cloudimg-amd64-disk1 --public --container-format=bare --disk-format qcow2
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: usage: glance [--version] [-d] [-v] [-k] [--cert-file CERT_FILE]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--key-file KEY_FILE] [--os-cacert ]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--ca-file OS_CACERT] [--timeout TIMEOUT] [--no-ssl-compression]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [-f] [--dry-run] [--ssl] [-H ADDRESS] [-p PORT]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-username OS_USERNAME] [-I OS_USERNAME]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-password OS_PASSWORD] [-K OS_PASSWORD]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [-T OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [-N OS_AUTH_URL]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-region-name OS_REGION_NAME] [-R OS_REGION_NAME]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-auth-token OS_AUTH_TOKEN] [-A OS_AUTH_TOKEN]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-image-url OS_IMAGE_URL] [-U OS_IMAGE_URL]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-image-api-version OS_IMAGE_API_VERSION]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-service-type OS_SERVICE_TYPE]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns:               [--os-endpoint-type OS_ENDPOINT_TYPE] [-S OS_AUTH_STRATEGY]
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: glance: error: argument --os-auth-token: expected one argument
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: ++ failed
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: ++ local r=2
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: +++ jobs -p
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: ++ kill
notice: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: ++ set +o xtrace
err: /Stage[main]//Node[devstack]/Exec[/home/vagrant/devstack/stack.sh]/returns: change from notrun to 0 failed: /home/vagrant/devstack/stack.sh returned 2 instead of one of [0] at /tmp/vagrant-puppet/manifests/site.pp:74
notice: Finished catalog run in 1110.62 seconds
err: Could not run command from postrun_command: Cannot allocate memory - fork(2)
bash: line 2:  1483 Killed                  FACTER_fqdn='devstack.local' puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' site.pp --detailed-exitcodes
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

cd /tmp/vagrant-puppet/manifests && FACTER_fqdn='devstack.local' puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' site.pp --detailed-exitcodes || [ $? -eq 2 ]

Rerunning the stack.sh script from within the box gives the same problem (after doing unstack).

It drills down that the $token variable is empty, so somewhere in the process that $token variable failed to get assigned.

Looks like related to: https://ask.openstack.org/question/2193/devstack-installation-error-on-ubuntu-64/ trying out the fixes proposed there:

  1. export no_proxy="localhost,127.0.0.0, IP of your machine"
  2. Increase memory of the VM ( <- most likely to work and hopfully fixes it.)

I'll add any solution if I one of the above works or i find another workaround ( or some one else has one please post)

Wessel

asl-marc commented 11 years ago

This helped me over the problem: http://stackoverflow.com/questions/17728061/glance-error-argument-os-auth-token-expected-one-argument

Edit your /etc/mysql/my.cnf Add these lines under [mysqld]:

innodb_additional_mem_pool_size = 8M innodb_buffer_pool_size = 8M