Ask Your Question
1

openstack-status: command not found

asked 2016-10-19 15:38:01 -0600

Laserfarts gravatar image

Hi all! I am trying to learn more about OpenStack. In taking a course, I have found that in Newton, openstack-status command is not working for me. I was wondering if I could get a few pointers? I'm not really sure where to start with this as I am pretty new to OpenStack. This is a centos 7/RDO/PackStack environment. I'd be more than happy to provide additional information if it is needed.

edit retag flag offensive close merge delete

Comments

The most recent version is here openstack-utils-2016.1-1.el7
http://cbs.centos.org/koji/buildinfo?...
Try yum install openstack-utils or yum-builddep openstack-utils

dbaxps gravatar imagedbaxps ( 2016-10-20 01:04:57 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
3

answered 2016-10-20 01:15:35 -0600

dbaxps gravatar image

updated 2016-10-20 04:41:55 -0600

UPDATE 10/20/16 MSK 12:36 PM

I worked via delorean (DLRN) trunk the most recent "centos7-newton/current-passed-ci"

sudo yum -y install yum-plugin-priorities
sudo curl -o /etc/yum.repos.d/delorean-newton.repo  http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-newton-tested/delorean.repo
sudo curl -o /etc/yum.repos.d/delorean-deps-newton.repo https://trunk.rdoproject.org/centos7-newton/delorean-deps.repo

Tested on both undecloud && overcloud controller-0 . Report been posted is for undercloud.
END UPDATE

See http://ftp.jaist.ac.jp/pub/Linux/Cent...

openstack-utils-2015.2-1.el7.src.rpm    2016-10-07 07:13    21K

So :-

yum-builddep openstack-utils

If fails file as bug to bugzilla.

It works :-

[stack@instack ~]$ sudo yum install openstack-utils
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos-mirror.rbc.ru
 * extras: centos-mirror.rbc.ru
 * updates: centos-mirror.rbc.ru
1144 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package openstack-utils.noarch 0:2016.1-1.el7 will be installed
--> Processing Dependency: crudini for package: openstack-utils-2016.1-1.el7.noarch
--> Running transaction check
---> Package crudini.noarch 0:0.7-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
 Package                Arch          Version               Repository                      Size
=================================================================================================
Installing:
 openstack-utils        noarch        2016.1-1.el7          delorean-newton-testing         18 k
Installing for dependencies:
 crudini                noarch        0.7-1.el7             delorean-newton-testing         22 k

Transaction Summary
=================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 40 k
Installed size: 86 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): crudini-0.7-1.el7.noarch.rpm                                       |  22 kB  00:00:00     
(2/2): openstack-utils-2016.1-1.el7.noarch.rpm                            |  18 kB  00:00:00     
-------------------------------------------------------------------------------------------------
Total                                                             59 kB/s |  40 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : crudini-0.7-1.el7.noarch                                                      1/2 
  Installing : openstack-utils-2016.1-1.el7.noarch                                           2/2 
  Verifying  : crudini-0.7-1.el7.noarch                                                      1/2 
  Verifying  : openstack-utils-2016.1-1.el7.noarch                                           2/2 

Installed:
  openstack-utils.noarch 0:2016.1-1.el7                                                          

Dependency Installed:
  crudini.noarch 0:0.7-1.el7                                                                     

Complete!
[stack@instack ~]$ openstack-status
== Nova services ==
openstack-nova-api:                     active
openstack-nova-compute:                 active
openstack-nova-network:                 inactive  (disabled on boot)
openstack-nova-scheduler:               active
openstack-nova-cert:                    active
openstack-nova-conductor:               active
== Glance services ==
openstack-glance-api:                   active
openstack-glance-registry:              active
== Keystone service ==
openstack-keystone:                     inactive  (disabled on boot)
== neutron services ==
neutron-server:                         active
neutron-dhcp-agent:                     active
neutron-l3-agent:                       inactive  (disabled on boot)
neutron-metadata-agent:                 inactive  (disabled on boot)
neutron-openvswitch-agent:              active
== Heat services ==
openstack-heat-api:                     active
openstack-heat-api-cfn:                 active
openstack-heat-api-cloudwatch:          inactive  (disabled on boot)
openstack-heat-engine:                  active
== Ironic services ==
openstack-ironic-api:                   active
openstack-ironic-conductor:             active
== Support services ==
openvswitch:                            active
dbus:                                   active
rabbitmq-server:                        active
memcached:                              active
== Keystone users ==
/bin/openstack-status: line 267: keystone: command not found
== Glance images ==
+--------------------------------------+------------------------+-------------+------------------+------------+--------+
| ID                                   | Name                   | Disk Format | Container Format | Size       | Status |
+--------------------------------------+------------------------+-------------+------------------+------------+--------+
| 28652434-0563-4962-879f-1cd119ab684f | bm-deploy-kernel       | aki         | aki              | 5157936    | active |
| 649e1ccb-5bd7-4a50-ad9b-d40704972825 | bm-deploy-ramdisk      | ari         | ari              | 308256535  | active |
| 8a243705-0fb6-406f-ac59-acf13b8c7a22 | overcloud-full         | qcow2       | bare             | 1121956864 | active |
| 2e058c88-f5d5-4844-8fdd-3ac2879432b5 | overcloud-full-initrd  | ari         | ari              | 42127367   | active |
| 9becfe81-8f60-4b9d-a567-5583e53c7494 | overcloud-full-vmlinuz | aki         | aki              | 5157936    | active |
+--------------------------------------+------------------------+-------------+------------------+------------+--------+
== Nova managed services ==
+----+----------------+---------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary         | Host                | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+----------------+---------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-cert      | instack.localdomain | internal | enabled | up    | 2016-10-20T09:03:21.000000 | -               |
| 3  | nova-scheduler | instack.localdomain | internal | enabled | up    | 2016-10-20T09:03:19.000000 | -               |
| 4  | nova-conductor | instack.localdomain | internal | enabled | up    | 2016-10-20T09:03:20.000000 | -               |
| 5  | nova-compute   | instack.localdomain ...
(more)
edit flag offensive delete link more

Comments

Well, well, well, that's perfect! That was it. Thank you for your response, I really appreciate it!

Laserfarts gravatar imageLaserfarts ( 2016-10-20 09:44:45 -0600 )edit
1

answered 2016-12-01 03:11:25 -0600

amit_bahuguna gravatar image

Note that keystone client is depreciated, hence "openstack-status" command will always give error : == Keystone users == /bin/openstack-status: line 267: keystone: command not found

/usr/bin/openstack-status is still using "keystone user-list" command, so better you edit 'openstack-status' file with "openstack user list" instead of "keystone user-list" in line 267.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-19 15:38:01 -0600

Seen: 9,853 times

Last updated: Dec 01 '16