Ask Your Question

xyue's profile - activity

2017-11-05 16:34:11 -0500 received badge  Famous Question (source)
2017-08-03 23:01:17 -0500 received badge  Notable Question (source)
2017-08-03 23:01:17 -0500 received badge  Popular Question (source)
2017-07-19 01:59:12 -0500 asked a question Glance error 410: Error in store configuration, adding images to store is disabled.

Hi guys, i am having errors when trying to upload images. Below is the error message

[root@controller ~]# openstack image create "cirros" \
>   --file cirros-0.3.5-x86_64-disk.img \
>   --disk-format qcow2 --container-format bare \
>   --public
410 Gone
Error in store configuration. Adding images to store is disabled.
    (HTTP N/A)
[root@controller ~]#

I have check the permission of the foler and it shows below

[root@controller glance]# ls -l
drw-r-xr-x. 2 glance glance 49 Jul 18 23:44 images
[root@controller glance]# pwd
/var/lib/glance

I have post the configuration for both api and registry at below.

glance-api.conf

[DEFAULT]
show_multiple_locations = false

[cors]
[cors.subdomain]

[database]
connection = mysql+pymysql://glance:glance123@controller/glance

[glance_store]
stores = file,http
default_store = file
filesystem_store_datadir = /var/lib/glance/images/
filesystem_store_metadata_file = none

[image_format]

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = glance123

service_token_roles_required = True
[matchmaker_redis]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]

[paste_deploy]
flavor = keystone

[profiler]
[store_type_location_strategy]
[task]
[taskflow_executor]

glance-registry.conf.

[DEFAULT]

[database]
connection = mysql+pymysql://glance:glance123@controller/glance

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = glance
password = glance123

[matchmaker_redis]
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_policy]

[paste_deploy]
flavor = keystone

[profiler]

Below is the message i can see from the log.

[root@controller ~]# tail /var/log/glance/api.log
2017-07-15 00:06:35.458 4156 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
2017-07-15 00:06:48.714 4186 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
2017-07-15 00:06:48.923 4186 INFO glance_store._drivers.filesystem [-] Directory to write image files does not exist (/var/lib/glance/images/). Creating.
2017-07-15 00:06:48.924 4186 ERROR glance_store._drivers.filesystem [-] Unable to create datadir: /var/lib/glance/images/
2017-07-15 00:06:48.924 4186 WARNING glance_store.driver [-] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Unable to create datadir: /var/lib/glance/images/ Disabling add method.
2017-07-15 00:06:48.925 4186 INFO glance.common.wsgi [-] Starting 2 workers
2017-07-15 00:06:48.929 4215 INFO eventlet.wsgi.server [-] (4215) wsgi starting up on http://0.0.0.0:9292
2017-07-15 00:06:48.930 4186 INFO glance.common.wsgi [-] Started child 4215
2017-07-15 00:06:48.935 4186 INFO glance.common.wsgi [-] Started child 4216
2017-07-15 00:06:48.935 4216 INFO eventlet.wsgi.server [-] (4216) wsgi starting up on http://0.0.0.0:9292

[root@controller ~]# tail /var/log/glance/registry.log -n 30
2017-07-07 19:20:38.037 7807 INFO eventlet.wsgi.server [-] (7807) wsgi starting up on http://0.0.0.0:9191
2017-07-07 19:45:54.040 15123 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is ...
(more)
2017-07-19 01:58:39 -0500 received badge  Famous Question (source)
2017-07-18 03:25:23 -0500 commented answer Create Instance but got "no valid host"

checked api.log and it still show the same error message i post previously. Please advise. Thank you very much.

2017-07-18 03:25:01 -0500 commented answer Create Instance but got "no valid host"

Checked the registry.log and only see below message:

keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
2017-07-18 03:24:21 -0500 commented answer Create Instance but got "no valid host"

regarding the glance, i have check the folder permission and owner and make sure it is belongs to glance. However, still get the same error message.

[root@controller glance]# ls -l
drw-r-xr-x. 2 glance glance 49 Jul 18 23:44 images
[root@controller glance]# pwd
/var/lib/glance
2017-07-18 03:23:58 -0500 received badge  Commentator
2017-07-18 03:23:58 -0500 commented answer Create Instance but got "no valid host"

I tried to access the placement api (controller:8778) through compute node web browser but it is not acccessible so i have open the port and i can see below message

{"error":{"message":"The request you have made requires authentication.","code":401, "title":"Unauthorized"}}
2017-07-16 20:35:21 -0500 commented answer Create Instance but got "no valid host"

my vm spec as below:

controller:2 cpu, 8GB RAM, 100G disk spacce

compute:2 cpu, 8GB RAM, 100G disk space

the instance i create only take 64MB RAM and 1G disk space (as m1.nano) which i think it should be fine.

2017-07-14 04:28:30 -0500 commented answer Create Instance but got "no valid host"

I will checked the endpoint list when i back to office on Monday. Thanks a lot for helping :)

2017-07-14 03:59:51 -0500 commented answer Create Instance but got "no valid host"

Checked the placment config in the compute node. Can access auth_url

[placement]
os_region_name=RegionOne
project_domain_name=Default
project_name=service
auth_type=password
user_domain_name=Default
auth_url=http://controller:35357/v3
username : xx
password : xx
2017-07-14 03:59:07 -0500 commented answer Create Instance but got "no valid host"

My glance store config in glance-api is set as below.

[glance_store]
stores = file,http
default_store = file
filesystem_store_datadir = /var/lib/glance/images/

I have checked the directory and has change the permission mode to 666 but still the same

2017-07-14 00:40:54 -0500 commented answer Create Instance but got "no valid host"

@Bernd Bausch, do you have any idea on the cause ? Tried googled few days but no result found. Now got below error when uploading the image also.

410 Gone 
Error in store configuration. Adding images to store is disabled.
    (HTTP N/A)
2017-07-13 02:45:08 -0500 commented answer Create Instance but got "no valid host"

Checked registry.log and found below message:

WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.
2017-07-13 02:44:25 -0500 commented answer Create Instance but got "no valid host"

@Praveen N, I have checked the openstack-glance-api & openstack-glance-registry services and both are up and running.

Checked api.log and found below :

StoreAddDisabled: Configuration for store failed. Adding images to this store is disabled.
2017-07-13 02:41:09 -0500 commented answer Create Instance but got "no valid host"

Hi , @fateem, Can i know what is your resources before and after ? Thank you.

2017-07-12 05:30:42 -0500 received badge  Famous Question (source)
2017-07-12 04:25:53 -0500 received badge  Nice Question (source)
2017-07-12 02:46:15 -0500 commented answer Create Instance but got "no valid host"

@Praveen N, I remove old cirros and redownload the new cirros. However, got below error when upload

410 Gone 
Error in store configuration. Adding images to store is disabled.
    (HTTP N/A)

Checked the rabbitmq and it was running fine. Can advise and steps to check on this ?

2017-07-12 01:03:59 -0500 answered a question Create Instance but got "no valid host"

Hi Praveen,

I have tried to restart the service. However, still having the same error. I use Cirros which is recommended in the openstack installation link.

[root@controller ~]# openstack flavor list
+--------------------------------------+---------+------+------+-----------+-------+-----------+
| ID                                   | Name    |  RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+---------+------+------+-----------+-------+-----------+
| 7fe4a706-039a-44a2-8366-b64cf3339ec2 | m1.nano |  64  |   2  |         0 |     1 | True      |
+--------------------------------------+---------+------+------+-----------+-------+-----------+
[root@controller ~]# openstack image list
+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| 5d59dc57-3580-47f6-bb77-171d76b59fff | cirros | active |
+--------------------------------------+--------+--------+

Hi eblock,

I have checked the [placement] in the nova.conf and configuration is as below.

[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = Password123

Below is the service-list from nova

+----+------------------+------------+----------+---------+-------+-------------    
| Id | Binary           | Host       | Zone     | Status  | State | Updated_at    
+----+------------------+------------+----------+---------+-------+-------------    
| 1  | nova-scheduler   | controller | internal | enabled | up    | 2017-07-12T1    
| 2  | nova-conductor   | controller | internal | enabled | up    | 2017-07-12T1    
| 3  | nova-consoleauth | controller | internal | enabled | up    | 2017-07-12T1    
| 8  | nova-compute     | compute1   | nova     | enabled | up    | 2017-07-12T1    
+----+------------------+------------+----------+---------+-------+-------------

Hi Bernd,

I have checked the port 9292, it has enabled on the firewalld side.

[root@controller ~]#   firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens160 ens192
  sources:
  services: dhcpv6-client ssh
  ports: 9292/tcp 3389/tcp 5672/tcp 80/tcp 35357/tcp
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:
[root@controller ~]#

I tried to check through all the installation verification steps and found below warning message:

root@controller ~]# nova-status upgrade check
+-------------------------------------------------------------------+
| Upgrade Check Results                                             |
+-------------------------------------------------------------------+
| Check: Cells v2                                                   |
| Result: Success                                                   |
| Details: None                                                     |
+-------------------------------------------------------------------+
| Check: Placement API                                              |
| Result: Success                                                   |
| Details: None                                                     |
+-------------------------------------------------------------------+
| Check: Resource Providers                                         |
| Result: Warning                                                   |
| Details: There are no compute resource providers in the Placement |
|   service but there are 1 compute nodes in the deployment.        |
|   This means no compute nodes are reporting into the              |
|   Placement service and need to be upgraded and/or fixed.         |
|   See                                                             |
|   http://docs.openstack.org/developer/nova/placement.html         |
|   for more details.                                               |
+-------------------------------------------------------------------+

Seems the resource providers having warning message. Is this normal ?

Please advise and thank you very much in advance.

2017-07-11 10:40:33 -0500 received badge  Notable Question (source)
2017-07-11 07:02:30 -0500 received badge  Popular Question (source)
2017-07-11 02:21:50 -0500 received badge  Student (source)
2017-07-11 01:20:52 -0500 asked a question Create Instance but got "no valid host"

Hi Guys,

I just installed the 2 nodes (controller and compute) by following the guide lines:
https://docs.openstack.org/ocata/inst...

After the installaton is done, I tried to create an instance but it shows me error as below :

Message : "No valid host was found. There are not enough hosts available."

Code : 500

Details

File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances request_specs[0].to_legacy_filter_properties_dict()) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return selfFile "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 866, in schedule_and_build_instances request_specs[0].to_legacy_filter_properties_dict()) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 597, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 129, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 458, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 449, in _send raise result

When i check the nova-compute.log in my compute node, it seems the placement api is not responding.

2017-07-11 21:39:25.348 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding.
2017-07-11 21:39:25.350 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding.
2017-07-11 21:39:25.351 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Unable to refresh my resource provider record
2017-07-11 21:39:25.370 3541 WARNING nova.scheduler.client.report [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Placement API service is not responding.
2017-07-11 21:39:25.407 3541 INFO nova.compute.resource_tracker [req-fb1a5210-a4b1-4738-894d-f0f847bd7a08 - - - - -] Final resource view: name=compute1 phys_ram=8191MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]

Can anyone advise how to handle this error message ? Tried few ways which found in internet but unable to solve the error.

Thank you very much in advance.

2017-06-06 04:12:45 -0500 received badge  Enthusiast
2017-06-04 22:21:59 -0500 asked a question Neutron Installation

Hi guys,

My team would like to understand more on how openstack neutron works with Nexus and i have been assigned for the installation of the openstack.

I would like to check if it is possible to install only Neutron & Dashboard without other services ( Nova, Glance, Keystone) as our main concern is how it will collaborate with our existing network infrastructure.

Hope to receive you guys suggesstion soon.

Thank you very much.

2016-12-01 18:06:12 -0500 received badge  Notable Question (source)
2016-11-30 00:54:39 -0500 received badge  Scholar (source)
2016-11-29 17:48:30 -0500 received badge  Popular Question (source)
2016-11-28 03:13:12 -0500 asked a question Keystone installation problem

HI guys,

Currently I'm reading the install guide for Newton and I have some confusion.

In the Identity (Keystone) installation, after finalized and start the services for HTTP, it required to configure the administrative account. I would like to check where is this file located or we should insert the command one by one into the terminal.

Installation guide URL : http://docs.openstack.org/newton/install-guide-rdo/keystone-install.html (http://docs.openstack.org/newton/inst...)

However, when I look into "Create OpenStack client environment scripts(in Keystone install guide also)", it ask to create client environment scripts which the details are similiar to the admin account created on steps above. If this steps required to save the configuration in a file, then where should we save ?

Installation guide URL : http://docs.openstack.org/newton/install-guide-rdo/keystone-openrc.html (http://docs.openstack.org/newton/inst...)

Having confusion on these 2 steps. Hope any experts can assist to explain the guide. Thank you very much in advance.