I installed devstack successfully only on the first time.
Then, after running again ./stack.sh I get error:
2016-01-20 19:58:45.797 | + '[' -n
/home/const/data/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-vmlinuz ']'
2016-01-20 19:58:45.798 | ++ openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-kernel --public --container-format aki --disk-format aki
2016-01-20 19:58:45.799 | ++ get_field 2
2016-01-20 19:58:45.800 | ++ local data field
2016-01-20 19:58:45.800 | ++ read data
2016-01-20 19:58:45.800 | ++ grep ' id '
2016-01-20 19:58:46.569 | The request you have made requires authentication. (HTTP 401) (Request-ID: req-ed5f0f38-5798-4a52-8d1c-0d185ca8bb80)
2016-01-20 19:58:46.610 | + kernel_id=
2016-01-20 19:58:46.610 | + '[' -n /home/const/data/devstack/files/images/cirros-0.3.4-x86_64-uec/cirros-0.3.4-x86_64-initrd ']'
2016-01-20 19:58:46.611 | ++ openstack --os-cloud=devstack-admin image create cirros-0.3.4-x86_64-uec-ramdisk --public --container-format ari --disk-format ari
Platform: Ubuntu 14.04.3 LTS # PC
I've tried to remove directories and databases. It doesn't help.
Try removing following directories and run again.
~/.config/openstack
/etc/nova
/etc/keystone
/etc/cinder
/etc/glance
It may happen that the .conf files are not getting updated with the new install.
Related
ssh host1 -l user1
who am i
$ user1 pts/5
pbrun su - service1
who am i
$ service1 /dev/pts/2
So how can service1 session determine that is was launched by user1?
This worked for me;
w>w.log
# account
grep "$0" w.log | cut -f1 -d " "
# pty
grep "$0" w.log | cut -f2 -d " "
Managed to work through my errors with DevStack and stack.sh generates about 6900+ logs on the screen so I am guessing I am very close :)
I am using Keystone 3, I manually exported OS_URL, OS_AUTH_URL (in an earlier run it complained about this one) and others. When the script exits, I tried the command manually with the os_url as noted in the logs below but it complains that it doesn't how which plugin to load and when I switch it to v3.0 it complains with a 404.
Following is a snippet of the error from the screen log, wondering if anyone else has seen this:
2015-08-26 18:30:38.005 | :./stack.sh:575+echo 'Waiting for keystone to start...'
2015-08-26 18:30:38.005 | Waiting for keystone to start...
2015-08-26 18:30:38.005 | :./stack.sh:579+wait_for_service 60 http://172.16.11.14:5000/v2.0/
2015-08-26 18:30:38.005 | :./stack.sh:340+local timeout=60
2015-08-26 18:30:38.005 | :./stack.sh:341+local url=http://172.16.11.14:5000/v2.0/
2015-08-26 18:30:38.005 | :./stack.sh:342+timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://172.16.11.14:5000/v2.0/ >/dev/null; do sleep 1; done'
2015-08-26 18:30:38.591 | :./stack.sh:584+is_service_enabled tls-proxy
2015-08-26 18:30:38.593 | :./stack.sh:1738+return 1
2015-08-26 18:30:38.593 | :./stack.sh:976+SERVICE_ENDPOINT=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.593 | :./stack.sh:978+is_service_enabled tls-proxy
2015-08-26 18:30:38.596 | :./stack.sh:1738+return 1
2015-08-26 18:30:38.596 | :./stack.sh:985+export OS_TOKEN=password
2015-08-26 18:30:38.596 | :./stack.sh:985+OS_TOKEN=password
2015-08-26 18:30:38.597 | :./stack.sh:986+export OS_URL=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.597 | :./stack.sh:986+OS_URL=http://172.16.11.14:35357/v2.0
2015-08-26 18:30:38.597 | :./stack.sh:988+create_keystone_accounts
2015-08-26 18:30:38.597 | ::./stack.sh:376+get_or_create_project admin
2015-08-26 18:30:38.597 | ::./stack.sh:729+local os_cmd=openstack
2015-08-26 18:30:38.597 | ::./stack.sh:730+local domain=
2015-08-26 18:30:38.597 | ::./stack.sh:731+[[ ! -z '' ]]
2015-08-26 18:30:38.597 | :::./stack.sh:740+openstack project create admin --or-show -f value -c id
2015-08-26 18:30:39.596 | ERROR: openstack The resource could not be found. (HTTP 404) (Request-ID: req-a5703c0a-bdb4-4ca0-8bf7-61ddbacbddf1)
2015-08-26 18:30:39.617 | ::./stack.sh:738+local project_id=
2015-08-26 18:30:39.617 | ::./stack.sh:739+echo
2015-08-26 18:30:39.617 | :./stack.sh:376+local admin_tenant=
2015-08-26 18:30:39.617 | ::./stack.sh:377+get_or_create_user admin password
2015-08-26 18:30:39.618 | ::./stack.sh:700+[[ ! -z '' ]]
2015-08-26 18:30:39.618 | ::./stack.sh:703+local email=
2015-08-26 18:30:39.618 | ::./stack.sh:705+local os_cmd=openstack
2015-08-26 18:30:39.618 | ::./stack.sh:706+local domain=
2015-08-26 18:30:39.618 | ::./stack.sh:707+[[ ! -z '' ]]
2015-08-26 18:30:39.618 | :::./stack.sh:723+openstack user create admin --password password --or-show -f value -c id
2015-08-26 18:30:40.853 | ERROR: openstack 'links'
On inspecting the logs across many files, I found that --os-url was getting a null value and hence the 404. To fix this I added OS_URL to openrc file (export OS_URL=http://:5000.... )
I then also had to force use of the identity v3 ... for this you need to modify the get_or_add_project_role sub-routine in the functions-common file (should be around line 775...) to specify the --os-url=$KEYSTONE_SERVICE_URI_V3 and --os-identity-api-version=3 options.
I was then able to get past this error.
Hope that helps.
I'm not sure if it's the right place for my question, I am trying to install devstack but I'm getting these errors:
openstackclient.shell Exception
2015-04-21 16:22:04.991 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:05.014 | + ADMIN_TENANT=
2015-04-21 16:22:05.015 | ++ openstack user create admin --project '' --email admin#example.com --password openstack
2015-04-21 16:22:05.015 | ++ grep ' id '
2015-04-21 16:22:05.018 | ++ get_field 2
2015-04-21 16:22:05.018 | ++ read data
2015-04-21 16:22:05.447 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:05.466 | + ADMIN_USER=
2015-04-21 16:22:05.467 | ++ openstack role create admin
2015-04-21 16:22:05.468 | ++ grep ' id '
2015-04-21 16:22:05.469 | ++ get_field 2
2015-04-21 16:22:05.469 | ++ read data
2015-04-21 16:22:05.897 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:05.916 | + ADMIN_ROLE=
2015-04-21 16:22:05.916 | + openstack role add --project --user
2015-04-21 16:22:06.349 | ERROR: openstackclient.shell Exception raised: (six 1.7.3 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.9.0'), set(['oslo.i18n', 'oslo.utils', 'cliff']))
2015-04-21 16:22:06.368 | + exit_trap
2015-04-21 16:22:06.368 | + local r=1
2015-04-21 16:22:06.368 | ++ jobs -p
2015-04-21 16:22:06.368 | + jobs=
2015-04-21 16:22:06.369 | + [[ -n '' ]]
2015-04-21 16:22:06.369 | + exit 1
After some research, typing pip install --upgrade setuptools, but that doesn't work I am using ubuntu 14.10 with no Virtual Machine, Please help?
For the original question, you have version 1.7.3 of six but 1.9.0 is needed. Uninstall six (pip uninstall six), then uninstall devStack (./clean.sh), then re-install devStack (./stack.sh)--but I'd recommend installing Kilo.
As for the "worlddump.py" output, that is just a dump of the state when an error occurs. The actual error will be in the text above this.
I am new to openstack. As told that devstack is convinent to deploy openstack,I try to do that on ubuntu 14.04,but an error arose after ./stack.sh, the following is the error log:
screen -S stack -p g-api -X stuff '/usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf & echo $! >/opt/stack/status/stack/g-api.pid; fg || ech' "g-api failed to start" | tee "/opt/stack/status/stack/g-api.failure"
+ echo 'Waiting for g-api (114.212.132.122:9290) to start...'
Waiting for g-api (114.212.132.122:9290) to start...
+ wait_for_service 60 http://114.212.132.122:9290
+ local timeout=60
+ local url=http://114.212.132.122:9290
+ timeout 60 sh -c 'while ! curl -k --noproxy '\''*'\'' -s http://114.212.132.122:9290 >/dev/null; do sleep 1; done'
+ die 317 'g-api did not start'
+ local exitcode=0
+ set +o xtrace
[Call Trace]
./stack.sh:1181:start_glance
/home/stack/devstack/lib/glance:317:die
[ERROR] /home/stack/devstack/lib/glance:317 g-api did not start
Error on exit
Thanks for helping :)
I am having issue in storing output of MYSQL command in variable in UNIX Bash shell
db_out= $(mysql -u$MASTER_DB_USER -p$MASTER_DB_PASSWD -P$MASTER_DB_PORT -h$MASTER_DB_HOST -D$MASTER_DB_NAME<<Enf
show databases;
Enf)
echo $db_out
I am getting no output in variable $db_out.
Can some body suggest what is missing in above query?
having below output:
db_out= mysql -u$MASTER_DB_USER -p$MASTER_DB_PASSWD -P$MASTER_DB_PORT -h$MASTER_DB_HOST -D$MASTER_DB_NAME --execute "show databases"
+ db_out=
+ mysql -uroot -paxway -P3306 -h10.151.14.248 -Dsentinel --execute 'show databases'
+--------------------+
| Database |
+--------------------+
+--------------------+
| information_schema |
| composer |
| mysql |
| sentinel |
| test |
+--------------------+
echo "$db_out"
+ echo ''
It seems that the output is written to STDERR.
try:
db_out= $(mysql -u$MASTER_DB_USER -p$MASTER_DB_PASSWD -P$MASTER_DB_PORT -h$MASTER_DB_HOST -D$MASTER_DB_NAME 2>&1 <<Enf
show databases;
Enf)
or:
db_out= $( echo "show databases;" | mysql -u$MASTER_DB_USER -p$MASTER_DB_PASSWD -P$MASTER_DB_PORT -h$MASTER_DB_HOST -D$MASTER_DB_NAME 2>&1)