Help us understand the problem. What is going on with this article?

OpenStack on CentOS7 引っかかりリスト

More than 5 years have passed since last update.

CentOS7にOpenStackをインストールしたときに、エラーが出た箇所のメモ書きです。

イメージ作成時エラー(virt-install)

Problem:

ERROR ネットワークが見つかりませんでした: 'default' に一致する名前を持つネットワークがありません

Answer:

(bash)# virsh net-define /usr/share/libvirt/networks/default.xml
(bash)# virsh net-autostart default
(bash)# virsh net-start default

ダッシュボード開けない

Problem:

/var/log/httpd/error_log
ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named angular_cookies

Answer:

(bash)# pip install XStatic_Anglar_Cookies

novncが127.0.0.1に繋ごうとする

Problem:
コントローラ以外のクライアントでダッシュボード上のコンソールを開こうとすると、127.0.0.1:6080に繋いでいる。

Answer:
以下、追加する。

/etc/nova/nova.conf(compute_node)
vnc_enabled=True
novncproxy_base_url=http://Controller_IP:6080/vnc_auto.html
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=Controller_IP
#Controller_IPは適宜変更のこと

インスタンス起動時エラー

Problem:
ダッシュボードにて

エラー: インスタンス "ins01" の起動に失敗しました: 後からもう一度お試しください [エラー: Build of instance 5e9fcc9c-1b2f-44ad-af6f-b51d7637696b aborted: Failed to allocate the network(s), not rescheduling.]
/var/log/nova/nova-copute.log in node01
Instance fails to spawn with Unexpected vif_type=binding_failed [closed]

Answer:
openvswitchを入れ直す、またはbr-intを作り直す。

noVNCエラー

Problem:
ダッシュボードのnoVNCが繋がらない。

Answer:

/etc/nova/nova.conf(compute.node)
vncserver_listen = 0.0.0.0

外部ネットワーク接続

Problem:
インスタンスが外部ネットワークに届かない。

Error: External network b7169915-050a-4c67-83fc-9ed28ae7dc0f is not reachable from subnet b7169915-050a-4c67-83fc-9ed28ae7dc0f. Therefore, cannot associate Port 4cd7cc7c-db9f-4fcc-86d4-a05607f0eb74 with a Floating IP.

Answer:

/etc/neutron/l3-agent.ini
[DEFAULT]
…
gateway_external_network_id = EXTERNAL_NETWORK_ID
external_network_bridge = br-ex
…

/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
…
type_drivers = vxlan,vlan,flat
tenant_network_types = vxlan,vlan
mechanism_drivers =openvswitch
…
[ml2_type_flat]
flat_networks = external
…
[ovs]
bridge_mappings = external:br-ex
(bash)# neutron net-create public --router:external --provider:physical_network external --provider:network_type flat

(bash)# neutron subnet-create public 192.168.0.0/24 --name public-subnet   --allocation-pool start=192.168.0.101,end=192.168.0.200   --disable-dhcp --gateway 192.168.0.1

(bash)# neutron router-create external_router
(bash)# neutron router-gateway-set external_router public

どこかがおかしくなりました!

Problem:
タイムアウトするとダッシュボードに入れない。

Answer:
Cookieを消去します。

  

メモ書き随時追加予定。

2m1tsu3
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした