Have you run init-keystone and setup-endpoints? You need to run them after overcloud is deployed.
Quote from http://openstack.redhat.com/TripleO_VM_Setup Overcloud Steps Once your Overcloud is up and running, it needs some initial orchestration to set it up. After that, you can deploy vm's on it if you want. Performance will be slow however since instances running on the Overcloud will be using qemu emulation only. These steps are actually the same as the TripleO upstream process, so instead of reproducing those steps here, head on over to: http://docs.openstack.org/developer/tripleo-incubator/devtest_overcloud.html. Pick up with step 10, where you're waiting for the Overcloud to finish deploying. On Tue, Jul 22, 2014 at 1:25 AM, 严超 <yanchao...@gmail.com> wrote: > Everything is OK except nova command in overcloud can't be used. Maybe > keystone is configured wrongly ? > > (undercloud)chaoya@ironic001:~/tripleo/tripleo-incubator$ heat > resource-list overcloud > > +---------------------+---------------------------------------+-----------------+----------------------+ > | resource_name | resource_type | > resource_status | updated_time | > > +---------------------+---------------------------------------+-----------------+----------------------+ > | AccessPolicy | OS::Heat::AccessPolicy | > CREATE_COMPLETE | 2014-07-17T02:38:00Z | > | ComputeAccessPolicy | OS::Heat::AccessPolicy | > CREATE_COMPLETE | 2014-07-17T02:38:00Z | > | ComputeUser | AWS::IAM::User | > CREATE_COMPLETE | 2014-07-17T02:38:02Z | > | User | AWS::IAM::User | > CREATE_COMPLETE | 2014-07-17T02:38:02Z | > | ComputeKey | AWS::IAM::AccessKey | > CREATE_COMPLETE | 2014-07-17T02:38:03Z | > | Key | AWS::IAM::AccessKey | > CREATE_COMPLETE | 2014-07-17T02:38:03Z | > | notcompute | OS::Nova::Server | > CREATE_COMPLETE | 2014-07-17T02:46:15Z | > | notcomputeConfig | AWS::AutoScaling::LaunchConfiguration | > CREATE_COMPLETE | 2014-07-17T02:46:16Z | > | NovaCompute0 | OS::Nova::Server | > CREATE_COMPLETE | 2014-07-17T02:47:43Z | > | NovaCompute0Config | AWS::AutoScaling::LaunchConfiguration | > CREATE_COMPLETE | 2014-07-17T02:47:44Z | > | CompletionHandle | OS::Heat::UpdateWaitConditionHandle | > CREATE_COMPLETE | 2014-07-17T03:12:18Z | > | CompletionCondition | AWS::CloudFormation::WaitCondition | > CREATE_COMPLETE | 2014-07-17T03:12:19Z | > > +---------------------+---------------------------------------+-----------------+----------------------+ > (undercloud)chaoya@ironic001:~/tripleo/tripleo-incubator$ nova list > > +--------------------------------------+----------------------------------------+--------+------------+-------------+--------------------+ > | ID | > Name | Status | Task State | Power State > | Networks | > > +--------------------------------------+----------------------------------------+--------+------------+-------------+--------------------+ > | 94b5a81c-7767-49fb-a0b0-9442f355193d | > overcloud-NovaCompute0-us25woc6rb42 | ACTIVE | - | Running > | ctlplane=192.0.2.8 | > | c15e2000-cd43-444d-a141-c89ba18bdb06 | > overcloud-notcompute-27yiw3bszwps | ACTIVE | - | Running > | ctlplane=192.0.2.7 | > | ea99219c-dede-4df0-8b63-8fd410c9a14b | > overcloud005-NovaCompute0-63qctvkfey62 | ACTIVE | - | Running > | ctlplane=192.0.2.9 | > > +--------------------------------------+----------------------------------------+--------+------------+-------------+--------------------+ > > > *Best Regards!* > > > *Chao Yan --------------**My twitter:Andy Yan @yanchao727 > <https://twitter.com/yanchao727>* > > > *My Weibo:http://weibo.com/herewearenow > <http://weibo.com/herewearenow>--------------* > > > 2014-07-22 15:27 GMT+08:00 Gangur, Hrushikesh (R & D HP Cloud) < > hrushikesh.gan...@hp.com>: > > I have seen this behavior when overcloud stack is not ready. Go to the >> Undercloud node and run "heat stack-list" to know the status of overcloud >> stack. If it is stuck at IN PROGRESS or ended in ERROR status, such >> behavior is observed. >> >> >> >> >> >> *From:* 严超 [mailto:yanchao...@gmail.com] >> *Sent:* Monday, July 21, 2014 9:52 PM >> *To:* Clint Byrum >> *Cc:* openstack >> *Subject:* Re: [Openstack] [TripleO]Overcloud won't use nova command >> like "nova list" >> >> >> >> I was following this guide: http://openstack.redhat.com/TripleO_VM_Setup >> >> >> *Best Regards**!* >> >> >> >> *Chao Yan -------------- My twitter**:**Andy Yan @yanchao727 >> <https://twitter.com/yanchao727>* >> *My Weibo**:* >> *http://weibo.com/herewearenow <http://weibo.com/herewearenow> >> --------------* >> >> >> >> 2014-07-22 12:21 GMT+08:00 严超 <yanchao...@gmail.com>: >> >> NO, I still can't use nova commands, debug is like follow : >> >> chaoya@ironic001:~/tripleo$ export -p | grep OS >> declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" >> declare -x OS_AUTH_URL="http://192.0.2.7:5000/v2.0" >> declare -x OS_NO_CACHE="True" >> declare -x OS_PASSWORD="unset" >> declare -x OS_TENANT_NAME="admin" >> declare -x OS_USERNAME="admin" >> chaoya@ironic001:~/tripleo$ nova --debug list >> >> REQ: curl -i 'http://192.0.2.7:5000/v2.0/tokens' -X POST -H >> "Content-Type: application/json" -H "Accept: application/json" -H >> "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", >> "passwordCredentials": {"username": "admin", "password": "unset"}}}' >> >> New session created for: (http://192.0.2.7:5000) >> RESP: [401] {'date': 'Tue, 22 Jul 2014 12:19:27 GMT', >> 'transfer-encoding': 'chunked', 'content-type': 'application/json', >> 'www-authenticate': 'Keystone uri="http://localhost:5000/"', 'vary': >> 'X-Auth-Token'} >> RESP BODY: {"error": {"message": "Could not find user, admin.", "code": >> 401, "title": "Unauthorized"}} >> >> DEBUG (shell:777) Invalid OpenStack Nova credentials. >> Traceback (most recent call last): >> File >> "/home/chaoya/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/novaclient/shell.py", >> line 774, in main >> OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) >> File >> "/home/chaoya/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/novaclient/shell.py", >> line 687, in main >> raise exc.CommandError(_("Invalid OpenStack Nova credentials.")) >> CommandError: Invalid OpenStack Nova credentials. >> >> >> ERROR: Invalid OpenStack Nova credentials. >> >> >> >> >> *Best Regards**!* >> >> >> >> *Chao Yan -------------- My twitter**:**Andy Yan @yanchao727 >> <https://twitter.com/yanchao727>* >> *My Weibo**:* >> *http://weibo.com/herewearenow <http://weibo.com/herewearenow> >> --------------* >> >> >> >> 2014-07-22 2:24 GMT+08:00 Clint Byrum <cl...@fewbar.com>: >> >> >> >> Not sure what is in stackrc, but if you used tripleo's 'devtest', it >> produces a 'tripleorc' which can be sourced, but you still also need to >> choose between overcloud and undercloud. So: >> >> . $TRIPLEO_ROOT/tripleorc >> . $TRIPLEO_ROOT/overcloudrc >> >> Should work. >> >> Excerpts from 严超's message of 2014-07-21 02:09:08 -0700: >> >> > Hi, Everyone : >> > I've got the same issue when deployed overcloud and undercloud >> > using TripleO, I can use "nova list" and the other nova command : >> > https://bugs.launchpad.net/tripleo/+bug/1290488 >> > Is there any way to solve this? >> > >> > root@overcloud-notcompute0-zdcmpw47hksu:~# . ~/stackrc >> > root@overcloud-notcompute0-zdcmpw47hksu:~# nova list >> > ERROR: Invalid OpenStack Nova credentials. >> > root@overcloud-notcompute0-zdcmpw47hksu:~# >> > >> >> > *Best Regards!* >> > >> > >> > *Chao Yan--------------**My twitter:Andy Yan @yanchao727 >> > <https://twitter.com/yanchao727>* >> > >> > >> > *My Weibo:http://weibo.com/herewearenow >> > <http://weibo.com/herewearenow>--------------* >> >> _______________________________________________ >> Mailing list: >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> Post to : openstack@lists.openstack.org >> Unsubscribe : >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> >> >> >> >> > > > _______________________________________________ > Mailing list: > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : openstack@lists.openstack.org > Unsubscribe : > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack