发起问题

Ohley 的档案 - activity

2021-01-17 06:02:23 -0500 获得奖牌  著名问题 (source)
2020-10-07 07:12:13 -0500 获得奖牌  受欢迎的问题 (source)
2020-10-07 07:12:13 -0500 获得奖牌  热门的问题 (source)
2020-08-31 05:29:07 -0500 问了问题 LXC containers no network connection

I'm trying to set up the hosts for a OpenStack deployment. When running

openstack-ansible setup-hosts.yml

the playbook fails for some hosts and during the task

[openstack_hosts : Remove the blacklisted packages]

I get messages like:

fatal: [infra1_keystone_container-7ca86d94]: FAILED! => {"changed": false, "cmd": "apt-get install --no-install-recommends python3-apt -y -q", "msg": "E: Failed to fetch http://ubuntu.mirror.lrz.de/ubuntu/pool/main/a/apt/libapt-inst2.0_1.6.12ubuntu0.1_amd64.deb (http://ubuntu.mirror.lrz.de/ubuntu/po...) Could not connect to 192.168.100.6:8000 (192.168.100.6), connection timed out

(there are similar errors for other containers, see below)

compute1 : ok=105 changed=0 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
compute2 : ok=105 changed=0 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
compute3 : ok=105 changed=0 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
compute4 : ok=105 changed=0 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
infra1 : ok=151 changed=1 unreachable=0 failed=0 skipped=34 rescued=0 ignored=0
infra1_cinder_api_container-7a9d5965 : ok=67 changed=2 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0
infra1_galera_container-4e6fd077 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_glance_container-58b5989f : ok=67 changed=2 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0
infra1_heat_api_container-6e6d4ba4 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_horizon_container-cd8ad5c0 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_keystone_container-7ca86d94 : ok=60 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_memcached_container-a67606a6 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_neutron_server_container-f3b8e91d : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_nova_api_container-3cea2cb8 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_placement_container-fe1968d2 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_rabbit_mq_container-e233b4e0 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_repo_container-dfd201e6 : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_swift_proxy_container-c210bccf : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
infra1_utility_container-be7dc8ce : ok=59 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
lvm-storage1 : ok=105 changed=0 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
swift-node1 : ok=105 changed=0 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0

Attaching to the lxc containers which failed, I discovered that they can't ping anything on the network (not even the host the reside on).

Some containers like glance don't fail though. I don't see while some containers should be able to connect to the network and others don't. Shouldn't their network configurations be the same?