Ask Your Question

whg's profile - activity

2016-03-23 04:46:04 -0500 received badge  Necromancer (source)
2016-03-23 04:46:04 -0500 received badge  Teacher (source)
2015-12-11 01:28:45 -0500 received badge  Famous Question (source)
2015-10-14 04:01:02 -0500 received badge  Notable Question (source)
2015-10-08 05:42:28 -0500 received badge  Famous Question (source)
2015-08-10 07:38:08 -0500 received badge  Popular Question (source)
2015-07-29 10:26:12 -0500 asked a question sahara Image Registry Error: Unable to fetch available images

i installed sahara kilo in virtual environment,

build an Image of ubuntu_sahara_vanilla_hadoop_2_6_latest.qcow2 for sahara Plugin and Upload the image to the

glance Image service


$ openstack image list
+--------------------------------------+----------------------------------+
| ID                                   | Name                             |
+--------------------------------------+----------------------------------+
| eeddaf5c-bac3-42da-904b-2da24741219a | ubuntu_sahara_vanilla_hadoop_2_6 |
| a243e1db-e299-4176-aedb-7b47bd83996d | trusty-server-cloudimg-amd64     |
| 35323c14-1192-40dc-9fb2-9ae0d3ddd30e | cirros-0.3.4-x86_64              |
+--------------------------------------+----------------------------------+

when i tried to registry iamge from horizon, i got an error : Unable to fetch available images

the sahara log


2015-07-29 23:05:52.058 29160 INFO sahara.utils.wsgi [-] 16.157.134.150 - - [29/Jul/2015 23:05:52] "GET /v1.1/61fb8056916941c6bb19ef1a0f1109c0/plugins/spark/0.9.1 HTTP/1.1" 200 61429 0.008901
2015-07-29 23:05:52.355 29160 INFO sahara.utils.wsgi [-] 16.157.134.150 - - [29/Jul/2015 23:05:52] "GET /v1.1/61fb8056916941c6bb19ef1a0f1109c0/plugins/cdh/5 HTTP/1.1" 200 511901 0.168864
2015-07-29 23:05:52.657 29160 INFO sahara.utils.wsgi [-] 16.157.134.150 - - [29/Jul/2015 23:05:52] "GET /v1.1/61fb8056916941c6bb19ef1a0f1109c0/plugins/cdh/5.3.0 HTTP/1.1" 200 768558 0.196890
2015-07-29 23:06:27.467 29160 ERROR sahara.utils.api [-] Request aborted with status code 500 and message 'Internal Server Error'
2015-07-29 23:06:27.468 29160 ERROR sahara.utils.api [-] Traceback (most recent call last):
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/sahara/utils/api.py", line 90, in handler
    return func(*kwargs)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/sahara/api/acl.py", line 44, in handler
    return func(args, *kwargs)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/sahara/api/v10.py", line 206, in images_list
    return u.render(images=[i.dict for i in api.get_images(name, tags)])
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/sahara/service/api.py", line 227, in get_images
    return nova.client().images.list_registered(name, tags)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/sahara/utils/openstack/images.py", line 124, in list_registered
    images = [i for i in self.list()
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/novaclient/v2/images.py", line 69, in list
    return self._list('/images%s%s' % (detail, query), 'images')
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/novaclient/base.py", line 64, in _list
    _resp, body = self.api.client.get(url)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/novaclient/client.py", line 450, in get
    return self._cs_request(url, 'GET', *kwargs)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/novaclient/client.py", line 428, in _cs_request
    resp, body = self._time_request(url, method, *kwargs)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/novaclient/client.py", line 397, in _time_request
    resp, body = self.request(url, method, *kwargs)
  File "/home/wuhg/sahara-venv/local/lib/python2.7/site-packages/novaclient/client.py", line 391, in request
    raise exceptions.from_response(resp, body, url, method)
NotFound: Not found (HTTP 404)

2015-07-29 23:06:27.469 29160 INFO sahara.utils.wsgi [-] 16.157.134.150 - - [29/Jul/2015 23:06:27] "GET /v1.1/61fb8056916941c6bb19ef1a0f1109c0/images HTTP/1.1" 500 252 11.362678 2015-07-29 23:06 ...

(more)
2015-07-27 22:06:24 -0500 received badge  Notable Question (source)
2015-07-01 23:06:02 -0500 received badge  Popular Question (source)
2015-07-01 02:31:24 -0500 answered a question How can I debug Swift in Eclipse?
2015-06-19 04:17:54 -0500 answered a question qrouter can't ping external gateway

the VM was created by ESXi and virtual switch or portgroup was not enable promiscuou Mode

2015-06-18 21:41:14 -0500 asked a question qrouter can't ping external gateway

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ifconfig

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:759 errors:0 dropped:0 overruns:0 frame:0 TX packets:759 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:67488 (67.4 KB) TX bytes:67488 (67.4 KB)

qg-77d9ae55-25 Link encap:Ethernet HWaddr fa:16:3e:60:27:d4 inet addr:16.157.128.85 Bcast:16.157.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe60:27d4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:40517 errors:0 dropped:211 overruns:0 frame:0 TX packets:663 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3850306 (3.8 MB) TX bytes:28542 (28.5 KB)

qr-314ac6df-db Link encap:Ethernet HWaddr fa:16:3e:33:84:d8 inet addr:192.168.1.1 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fe33:84d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:864 (864.0 B)

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         16.157.128.1    0.0.0.0         UG    0      0        0 qg-77d9ae55-25
16.157.0.0      0.0.0.0         255.255.0.0     U     0      0        0 qg-77d9ae55-25
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 qr-314ac6df-db

root@network:/etc/neutron# ip netns exec qrouter-1b811a4e-858a-43c7-a1a0-351293670195 ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
From 16.157.128.85 icmp_seq=1 Destination Host Unreachable
From 16.157.128.85 icmp_seq=2 Destination Host Unreachable
From 16.157.128.85 icmp_seq=3 Destination Host Unreachable
^C
--- 16.157.128.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms

root@network:/etc/neutron# ping 16.157.128.1


PING 16.157.128.1 (16.157.128.1) 56(84) bytes of data.
64 bytes from 16.157.128.1: icmp_seq=1 ttl=255 time=0.699 ms
64 bytes from 16.157.128.1: icmp_seq=2 ttl=255 time=0.574 ms
64 bytes from 16.157.128.1: icmp_seq=3 ttl=255 time=0.913 ms
^C
--- 16.157.128.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.574/0.728/0.913/0.143 ms

soauser@controller:~$ neutron net-list


+--------------------------------------+----------+-----------------------------------------------------+
| id                                   | name     | subnets                                             |
+--------------------------------------+----------+-----------------------------------------------------+
| 055be3b8-6db7-42d1-aa93-3c94159bd3ba | demo-net | f78b30b5-d723-4a14-a464-8254942ee816 ...
(more)
2015-06-18 08:33:06 -0500 received badge  Famous Question (source)
2015-06-17 21:43:33 -0500 commented answer neutron router gateway can't be ping through except on neutron network node or nova instance

the workaround is that setting the exteral network bridge explicitly in /etc/neutron/l3_agent.ini

/etc/neutron/l3_agent.ini


[DEFAULT]
external_network_bridge = <ovs-extenal-bridge>

2015-06-17 20:59:25 -0500 received badge  Notable Question (source)
2015-06-17 20:59:19 -0500 answered a question neutron router gateway can't be ping through except on neutron network node or nova instance

i have the same problem as https://ask.openstack.org/en/question... ,

2015-06-17 07:34:37 -0500 received badge  Popular Question (source)
2015-06-17 04:59:47 -0500 asked a question neutron router gateway can't be ping through except on neutron network node or nova instance

i installed openstack kilo on unbutn guest VM with 1 controller+1network +2 compute by following ubuntu kilo install guide.

all is ok before go to create the external flat network ,its subnet and a router ,Attached the router to the external network by setting it as the gateway.

the tenant router gateway IP can only be ping through from neutron network node and nova VM instance

the router gateway ip is 16.157.128.85 root@network:~# ifconfig


br-ex     Link encap:Ethernet  HWaddr 00:50:56:88:6a:8f
          inet addr:16.157.134.188  Bcast:16.157.135.255  Mask:255.255.248.0
          inet6 addr: fe80::e890:2eff:fe95:c5c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:356635 errors:0 dropped:2906 overruns:0 frame:0
          TX packets:2611 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:34246121 (34.2 MB)  TX bytes:384580 (384.5 KB)

eth0 Link encap:Ethernet HWaddr 00:50:56:88:6a:8f inet6 addr: fe80::250:56ff:fe88:6a8f/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:356615 errors:0 dropped:4 overruns:0 frame:0 TX packets:2898 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:34244821 (34.2 MB) TX bytes:394146 (394.1 KB)

eth1 Link encap:Ethernet HWaddr 00:50:56:88:2c:1e inet addr:10.0.0.21 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fe88:2c1e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:373992 errors:0 dropped:2909 overruns:0 frame:0 TX packets:28631 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:35539613 (35.5 MB) TX bytes:4942004 (4.9 MB)

eth2 Link encap:Ethernet HWaddr 00:50:56:88:1b:70 inet addr:10.0.1.21 Bcast:10.0.1.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fe88:1b70/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:354716 errors:0 dropped:2908 overruns:0 frame:0 TX packets:253 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:34085050 (34.0 MB) TX bytes:26583 (26.5 KB)

1: /etc/neutron/neutron.conf

 
 [DEFAULT]
verbose = True
rpc_backend = rabbit
auth_strategy = keystone
core_plugin = ml2
service_plugins = router,lbaas
allow_overlapping_ips = True
core_plugin = ml2
[matchmaker_redis]
[matchmaker_ring]
[quotas]
[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = admin
[database]
[nova]
[oslo_concurrency]
lock_path = $state_path/lock
[oslo_policy]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = admin

2: /etc/neutron/plugins/ml2/ml2_conf.ini

 
[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = gre
mechanism_drivers = openvswitch
[ml2_type_flat]
flat_networks = external
[ml2_type_vlan]
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
[securitygroup]
enable_security_group = True
enable_ipset = True
firewall_driver = neutron ...
(more)
2015-06-15 02:36:51 -0500 commented answer Can i configure promiscous mode on vmware workstation?

To check if the promisc is on

$ip a |grep eth1 |grep PROMISC

2015-06-14 19:50:26 -0500 commented question Instance Error, caused by libvirtError: internal error no supported architecture for os type 'hvm ??

met this error when i put virt_type=qemu in nova.conf instead of in nova-compute.conf

2015-06-14 19:49:53 -0500 commented answer Instance Error, caused by libvirtError: internal error no supported architecture for os type 'hvm ??

i met this error when i put virt_type=qemu in nova.conf instead of in nova-compute.conf

2015-06-13 00:19:31 -0500 answered a question unable to connect to neutron api

openstack endpoint delete <endping_id>

openstack endpoint create \

--publicurl http://neutron:9696 \ --adminurl http://neutron:9696 \ --internalurl http://neutron:9696 \ --region RegionOne \ network

then all will be fine

2015-04-21 19:01:02 -0500 answered a question Installing DevStack, unable to connect to git.openstack.org

another option is set GIT_BASE to use https instead of git

http://stackoverflow.com/questions/20...

2015-02-09 00:45:55 -0500 received badge  Famous Question (source)
2015-02-03 02:16:40 -0500 received badge  Famous Question (source)