kolla-ansible 集群问题跟踪调试

因为内部网络配置问题,内部10.30监听ip没起来导致的docker部分容器运行异常

 

 

 

 

 

 前面启动的vmInstance只能ping通租户网10.0.0.0/24可能原因是物理机桥接网卡ifcfg-enp0s9的配置问题

另外存在的问题是docker容器持续出现不断重启的问题,通过logs跟踪可能是由于mem内存匮乏不足导致的,也发现部分启动rabbit访问跟目录的问题等

 

 

 

 

Checking for locally available cirros image.
Creating glance image.
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field            | Value                                                                                                                                                                                                       |
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum         | 443b7623e27ecf03dc9e01ee93f67afe                                                                                                                                                                            |
| container_format | bare                                                                                                                                                                                                        |
| created_at       | 2020-03-27T08:19:34Z                                                                                                                                                                                        |
| disk_format      | qcow2                                                                                                                                                                                                       |
| file             | /v2/images/c59ec461-8f11-466d-93b4-50ebadb4c27f/file                                                                                                                                                        |
| id               | c59ec461-8f11-466d-93b4-50ebadb4c27f                                                                                                                                                                        |
| min_disk         | 0                                                                                                                                                                                                           |
| min_ram          | 0                                                                                                                                                                                                           |
| name             | cirros                                                                                                                                                                                                      |
| owner            | d090b0402d734d7c9c53fe566229f988                                                                                                                                                                            |
| properties       | os_hash_algo='sha512', os_hash_value='6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78', os_hidden='False', os_type='linux' |
| protected        | False                                                                                                                                                                                                       |
| schema           | /v2/schemas/image                                                                                                                                                                                           |
| size             | 12716032                                                                                                                                                                                                    |
| status           | active                                                                                                                                                                                                      |
| tags             |                                                                                                                                                                                                             |
| updated_at       | 2020-03-27T08:19:37Z                                                                                                                                                                                        |
| virtual_size     | None                                                                                                                                                                                                        |
| visibility       | public                                                                                                                                                                                                      |
+------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Configuring neutron.
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                     | Value                                                                                                                                                            |
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up            | UP                                                                                                                                                               |
| availability_zone_hints   |                                                                                                                                                                  |
| availability_zones        |                                                                                                                                                                  |
| created_at                | 2020-03-27T08:19:41Z                                                                                                                                             |
| description               |                                                                                                                                                                  |
| dns_domain                | None                                                                                                                                                             |
| id                        | 8972f7dc-2aff-42d4-bdad-8fe407c99067                                                                                                                             |
| ipv4_address_scope        | None                                                                                                                                                             |
| ipv6_address_scope        | None                                                                                                                                                             |
| is_default                | False                                                                                                                                                            |
| is_vlan_transparent       | None                                                                                                                                                             |
| location                  | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| mtu                       | 1500                                                                                                                                                             |
| name                      | public1                                                                                                                                                          |
| port_security_enabled     | True                                                                                                                                                             |
| project_id                | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| provider:network_type     | flat                                                                                                                                                             |
| provider:physical_network | physnet1                                                                                                                                                         |
| provider:segmentation_id  | None                                                                                                                                                             |
| qos_policy_id             | None                                                                                                                                                             |
| revision_number           | 1                                                                                                                                                                |
| router:external           | External                                                                                                                                                         |
| segments                  | None                                                                                                                                                             |
| shared                    | False                                                                                                                                                            |
| status                    | ACTIVE                                                                                                                                                           |
| subnets                   |                                                                                                                                                                  |
| tags                      |                                                                                                                                                                  |
| updated_at                | 2020-03-27T08:19:42Z                                                                                                                                             |
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                | Value                                                                                                                                                            |
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| allocation_pools     | 192.168.0.216-192.168.0.250                                                                                                                                      |
| cidr                 | 192.168.0.0/24                                                                                                                                                   |
| created_at           | 2020-03-27T08:19:45Z                                                                                                                                             |
| description          |                                                                                                                                                                  |
| dns_nameservers      |                                                                                                                                                                  |
| dns_publish_fixed_ip | None                                                                                                                                                             |
| enable_dhcp          | False                                                                                                                                                            |
| gateway_ip           | 192.168.0.1                                                                                                                                                      |
| host_routes          |                                                                                                                                                                  |
| id                   | e68bc7e7-49b3-419c-9d69-12e52505057d                                                                                                                             |
| ip_version           | 4                                                                                                                                                                |
| ipv6_address_mode    | None                                                                                                                                                             |
| ipv6_ra_mode         | None                                                                                                                                                             |
| location             | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name                 | public1-subnet                                                                                                                                                   |
| network_id           | 8972f7dc-2aff-42d4-bdad-8fe407c99067                                                                                                                             |
| prefix_length        | None                                                                                                                                                             |
| project_id           | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| revision_number      | 0                                                                                                                                                                |
| segment_id           | None                                                                                                                                                             |
| service_types        |                                                                                                                                                                  |
| subnetpool_id        | None                                                                                                                                                             |
| tags                 |                                                                                                                                                                  |
| updated_at           | 2020-03-27T08:19:45Z                                                                                                                                             |
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                     | Value                                                                                                                                                            |
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up            | UP                                                                                                                                                               |
| availability_zone_hints   |                                                                                                                                                                  |
| availability_zones        |                                                                                                                                                                  |
| created_at                | 2020-03-27T08:19:49Z                                                                                                                                             |
| description               |                                                                                                                                                                  |
| dns_domain                | None                                                                                                                                                             |
| id                        | 5bd8b06d-eac0-4103-92c3-0fce110bca45                                                                                                                             |
| ipv4_address_scope        | None                                                                                                                                                             |
| ipv6_address_scope        | None                                                                                                                                                             |
| is_default                | False                                                                                                                                                            |
| is_vlan_transparent       | None                                                                                                                                                             |
| location                  | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| mtu                       | 1450                                                                                                                                                             |
| name                      | demo-net                                                                                                                                                         |
| port_security_enabled     | True                                                                                                                                                             |
| project_id                | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| provider:network_type     | vxlan                                                                                                                                                            |
| provider:physical_network | None                                                                                                                                                             |
| provider:segmentation_id  | 62                                                                                                                                                               |
| qos_policy_id             | None                                                                                                                                                             |
| revision_number           | 1                                                                                                                                                                |
| router:external           | Internal                                                                                                                                                         |
| segments                  | None                                                                                                                                                             |
| shared                    | False                                                                                                                                                            |
| status                    | ACTIVE                                                                                                                                                           |
| subnets                   |                                                                                                                                                                  |
| tags                      |                                                                                                                                                                  |
| updated_at                | 2020-03-27T08:19:50Z                                                                                                                                             |
+---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                | Value                                                                                                                                                            |
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| allocation_pools     | 10.0.0.2-10.0.0.254                                                                                                                                              |
| cidr                 | 10.0.0.0/24                                                                                                                                                      |
| created_at           | 2020-03-27T08:19:53Z                                                                                                                                             |
| description          |                                                                                                                                                                  |
| dns_nameservers      | 8.8.8.8                                                                                                                                                          |
| dns_publish_fixed_ip | None                                                                                                                                                             |
| enable_dhcp          | True                                                                                                                                                             |
| gateway_ip           | 10.0.0.1                                                                                                                                                         |
| host_routes          |                                                                                                                                                                  |
| id                   | 39802e8a-17cd-4adc-95dd-3bafff6db9ef                                                                                                                             |
| ip_version           | 4                                                                                                                                                                |
| ipv6_address_mode    | None                                                                                                                                                             |
| ipv6_ra_mode         | None                                                                                                                                                             |
| location             | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name                 | demo-subnet                                                                                                                                                      |
| network_id           | 5bd8b06d-eac0-4103-92c3-0fce110bca45                                                                                                                             |
| prefix_length        | None                                                                                                                                                             |
| project_id           | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| revision_number      | 0                                                                                                                                                                |
| segment_id           | None                                                                                                                                                             |
| service_types        |                                                                                                                                                                  |
| subnetpool_id        | None                                                                                                                                                             |
| tags                 |                                                                                                                                                                  |
| updated_at           | 2020-03-27T08:19:53Z                                                                                                                                             |
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                            |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                               |
| availability_zone_hints |                                                                                                                                                                  |
| availability_zones      |                                                                                                                                                                  |
| created_at              | 2020-03-27T08:19:56Z                                                                                                                                             |
| description             |                                                                                                                                                                  |
| distributed             | False                                                                                                                                                            |
| external_gateway_info   | null                                                                                                                                                             |
| flavor_id               | None                                                                                                                                                             |
| ha                      | False                                                                                                                                                            |
| id                      | a8aa3de7-3bdd-4ac0-a50e-89e01a8714b6                                                                                                                             |
| location                | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name                    | demo-router                                                                                                                                                      |
| project_id              | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| revision_number         | 1                                                                                                                                                                |
| routes                  |                                                                                                                                                                  |
| status                  | ACTIVE                                                                                                                                                           |
| tags                    |                                                                                                                                                                  |
| updated_at              | 2020-03-27T08:19:56Z                                                                                                                                             |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                            |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| created_at        | 2020-03-27T08:20:23Z                                                                                                                                             |
| description       |                                                                                                                                                                  |
| direction         | ingress                                                                                                                                                          |
| ether_type        | IPv4                                                                                                                                                             |
| id                | b7ee1dc8-c4ce-4323-ac9b-ff292efe4d4e                                                                                                                             |
| location          | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name              | None                                                                                                                                                             |
| port_range_max    | None                                                                                                                                                             |
| port_range_min    | None                                                                                                                                                             |
| project_id        | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| protocol          | icmp                                                                                                                                                             |
| remote_group_id   | None                                                                                                                                                             |
| remote_ip_prefix  | 0.0.0.0/0                                                                                                                                                        |
| revision_number   | 0                                                                                                                                                                |
| security_group_id | aa2cb0f2-80ff-4835-a694-8485c130c0b6                                                                                                                             |
| tags              | []                                                                                                                                                               |
| updated_at        | 2020-03-27T08:20:23Z                                                                                                                                             |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                            |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| created_at        | 2020-03-27T08:20:26Z                                                                                                                                             |
| description       |                                                                                                                                                                  |
| direction         | ingress                                                                                                                                                          |
| ether_type        | IPv4                                                                                                                                                             |
| id                | 7662c9fd-f8e9-433f-8c1b-3539a9efb244                                                                                                                             |
| location          | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name              | None                                                                                                                                                             |
| port_range_max    | 22                                                                                                                                                               |
| port_range_min    | 22                                                                                                                                                               |
| project_id        | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| protocol          | tcp                                                                                                                                                              |
| remote_group_id   | None                                                                                                                                                             |
| remote_ip_prefix  | 0.0.0.0/0                                                                                                                                                        |
| revision_number   | 0                                                                                                                                                                |
| security_group_id | aa2cb0f2-80ff-4835-a694-8485c130c0b6                                                                                                                             |
| tags              | []                                                                                                                                                               |
| updated_at        | 2020-03-27T08:20:26Z                                                                                                                                             |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                            |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| created_at        | 2020-03-27T08:20:34Z                                                                                                                                             |
| description       |                                                                                                                                                                  |
| direction         | ingress                                                                                                                                                          |
| ether_type        | IPv4                                                                                                                                                             |
| id                | 499175cd-cdf3-44bb-8dc9-18efcf70b11c                                                                                                                             |
| location          | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name              | None                                                                                                                                                             |
| port_range_max    | 8000                                                                                                                                                             |
| port_range_min    | 8000                                                                                                                                                             |
| project_id        | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| protocol          | tcp                                                                                                                                                              |
| remote_group_id   | None                                                                                                                                                             |
| remote_ip_prefix  | 0.0.0.0/0                                                                                                                                                        |
| revision_number   | 0                                                                                                                                                                |
| security_group_id | aa2cb0f2-80ff-4835-a694-8485c130c0b6                                                                                                                             |
| tags              | []                                                                                                                                                               |
| updated_at        | 2020-03-27T08:20:34Z                                                                                                                                             |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                            |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| created_at        | 2020-03-27T08:20:37Z                                                                                                                                             |
| description       |                                                                                                                                                                  |
| direction         | ingress                                                                                                                                                          |
| ether_type        | IPv4                                                                                                                                                             |
| id                | e05f3e40-2225-4d3b-9f25-0488ee6631d3                                                                                                                             |
| location          | cloud='', project.domain_id=, project.domain_name='Default', project.id='d090b0402d734d7c9c53fe566229f988', project.name='admin', region_name='RegionOne', zone= |
| name              | None                                                                                                                                                             |
| port_range_max    | 8080                                                                                                                                                             |
| port_range_min    | 8080                                                                                                                                                             |
| project_id        | d090b0402d734d7c9c53fe566229f988                                                                                                                                 |
| protocol          | tcp                                                                                                                                                              |
| remote_group_id   | None                                                                                                                                                             |
| remote_ip_prefix  | 0.0.0.0/0                                                                                                                                                        |
| revision_number   | 0                                                                                                                                                                |
| security_group_id | aa2cb0f2-80ff-4835-a694-8485c130c0b6                                                                                                                             |
| tags              | []                                                                                                                                                               |
| updated_at        | 2020-03-27T08:20:37Z                                                                                                                                             |
+-------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Configuring nova public key and quotas.
+-------------+-------------------------------------------------+
| Field       | Value                                           |
+-------------+-------------------------------------------------+
| fingerprint | ca:6b:79:0a:14:5e:53:3f:da:11:cb:9f:6f:69:0d:74 |
| name        | mykey                                           |
| user_id     | c3b56eb6100e40e68977f8cceaa8bcb3                |
+-------------+-------------------------------------------------+
+----------------------------+-----------+
| Field                      | Value     |
+----------------------------+-----------+
| OS-FLV-DISABLED:disabled   | False     |
| OS-FLV-EXT-DATA:ephemeral  | 0         |
| disk                       | 1         |
| id                         | 6         |
| name                       | ruiy.tiny |
| os-flavor-access:is_public | True      |
| properties                 |           |
| ram                        | 128       |
| rxtx_factor                | 1.0       |
| swap                       |           |
| vcpus                      | 1         |
+----------------------------+-----------+
+----------------------------+---------+
| Field                      | Value   |
+----------------------------+---------+
| OS-FLV-DISABLED:disabled   | False   |
| OS-FLV-EXT-DATA:ephemeral  | 0       |
| disk                       | 1       |
| id                         | 1       |
| name                       | m1.tiny |
| os-flavor-access:is_public | True    |
| properties                 |         |
| ram                        | 512     |
| rxtx_factor                | 1.0     |
| swap                       |         |
| vcpus                      | 1       |
+----------------------------+---------+
+----------------------------+----------+
| Field                      | Value    |
+----------------------------+----------+
| OS-FLV-DISABLED:disabled   | False    |
| OS-FLV-EXT-DATA:ephemeral  | 0        |
| disk                       | 20       |
| id                         | 2        |
| name                       | m1.small |
| os-flavor-access:is_public | True     |
| properties                 |          |
| ram                        | 2048     |
| rxtx_factor                | 1.0      |
| swap                       |          |
| vcpus                      | 1        |
+----------------------------+----------+
+----------------------------+-----------+
| Field                      | Value     |
+----------------------------+-----------+
| OS-FLV-DISABLED:disabled   | False     |
| OS-FLV-EXT-DATA:ephemeral  | 0         |
| disk                       | 40        |
| id                         | 3         |
| name                       | m1.medium |
| os-flavor-access:is_public | True      |
| properties                 |           |
| ram                        | 4096      |
| rxtx_factor                | 1.0       |
| swap                       |           |
| vcpus                      | 2         |
+----------------------------+-----------+
+----------------------------+----------+
| Field                      | Value    |
+----------------------------+----------+
| OS-FLV-DISABLED:disabled   | False    |
| OS-FLV-EXT-DATA:ephemeral  | 0        |
| disk                       | 80       |
| id                         | 4        |
| name                       | m1.large |
| os-flavor-access:is_public | True     |
| properties                 |          |
| ram                        | 8192     |
| rxtx_factor                | 1.0      |
| swap                       |          |
| vcpus                      | 4        |
+----------------------------+----------+
+----------------------------+-----------+
| Field                      | Value     |
+----------------------------+-----------+
| OS-FLV-DISABLED:disabled   | False     |
| OS-FLV-EXT-DATA:ephemeral  | 0         |
| disk                       | 160       |
| id                         | 5         |
| name                       | m1.xlarge |
| os-flavor-access:is_public | True      |
| properties                 |           |
| ram                        | 16384     |
| rxtx_factor                | 1.0       |
| swap                       |           |
| vcpus                      | 8         |
+----------------------------+-----------+

Done.

To deploy a demo instance, run:

openstack server create 
    --image cirros 
    --flavor m1.tiny 
    --key-name mykey 
    --network demo-net 
    demo1

 

原文地址:https://www.cnblogs.com/ruiy/p/12564971.html