2025-03-22 09:27:43,645 - INFO - Domain Default found not creating 2025-03-22 09:27:43,805 - INFO - Project ctest-TestBasicPolicy-28198960 not found, creating it 2025-03-22 09:27:44,297 - INFO - Created Project:ctest-TestBasicPolicy-28198960, ID : 694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:27:45,941 - INFO - ================================================================================ 2025-03-22 09:27:45,941 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-22 09:27:45,941 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-03-22 09:27:46,212 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.7': '0'}} with 2025-03-22 09:27:46,212 - INFO - Initial checks done. Running the testcase now 2025-03-22 09:27:46,212 - INFO - 2025-03-22 09:27:46,828 - DEBUG - Response for create_network : {'network': {'id': 'e0fb1502-4f8a-4195-92f3-c16302dc125f', 'name': 'ctest-vn-45692452', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-45692452'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:27:47,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b5cf317-0d38-4baf-b6ae-2e9a2b2c2e4a', 'name': '', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'network_id': 'e0fb1502-4f8a-4195-92f3-c16302dc125f', 'ip_version': 4, 'cidr': '107.140.170.64/26', 'allocation_pools': [{'start': '107.140.170.66', 'end': '107.140.170.126'}], 'gateway_ip': '107.140.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.140.170.66', 'tags': [], 'project_id': '694e0a282e4d4a069fd2dbec493fe604'}} 2025-03-22 09:27:47,037 - INFO - Created VN ctest-vn-45692452 2025-03-22 09:27:47,089 - DEBUG - VN ctest-vn-45692452 UUID is e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:47,417 - DEBUG - Response for create_network : {'network': {'id': 'b3622144-c856-4bee-a36a-5b07c1fb91ca', 'name': 'ctest-vn-97599131', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-97599131'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:27:47,785 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe90be29-7c76-47bc-b56b-63ffe9b79561', 'name': '', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'network_id': 'b3622144-c856-4bee-a36a-5b07c1fb91ca', 'ip_version': 4, 'cidr': '58.20.219.192/26', 'allocation_pools': [{'start': '58.20.219.194', 'end': '58.20.219.254'}], 'gateway_ip': '58.20.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.20.219.194', 'tags': [], 'project_id': '694e0a282e4d4a069fd2dbec493fe604'}} 2025-03-22 09:27:47,816 - INFO - Created VN ctest-vn-97599131 2025-03-22 09:27:47,889 - DEBUG - VN ctest-vn-97599131 UUID is b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:48,068 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-03-22 09:27:48,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0fb1502-4f8a-4195-92f3-c16302dc125f', 'name': 'ctest-vn-45692452', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b5cf317-0d38-4baf-b6ae-2e9a2b2c2e4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-45692452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309']], 'subnet_ipam': [{'subnet_cidr': '107.140.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:27:48,823 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3622144-c856-4bee-a36a-5b07c1fb91ca', 'name': 'ctest-vn-97599131', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe90be29-7c76-47bc-b56b-63ffe9b79561'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-97599131'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309']], 'subnet_ipam': [{'subnet_cidr': '58.20.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:27:48,957 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:27:49,301 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:27:49,333 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d 2025-03-22 09:27:49,351 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:27:49,437 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:49,450 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:49,462 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078 2025-03-22 09:27:49,471 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078 2025-03-22 09:27:49,481 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/2f3c0a8e-0dbd-472f-8421-e1b96340f8c9 2025-03-22 09:27:49,489 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-22 09:27:49,489 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:49,500 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078 2025-03-22 09:27:49,517 - INFO - Verified VN network id 9 for VN e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:49,517 - INFO - Verifications in API Server for VN ctest-vn-45692452 passed 2025-03-22 09:27:49,517 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:49,528 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078 2025-03-22 09:27:49,537 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078 2025-03-22 09:27:49,545 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/2f3c0a8e-0dbd-472f-8421-e1b96340f8c9 2025-03-22 09:27:49,562 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28198960', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16211574383318811029', 'uuid-lslong': '10589019779872068191'}, 'enable': 'true', 'created': '2025-03-22T09:27:46', 'last-modified': '2025-03-22T09:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009192'} 2025-03-22 09:27:49,572 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-22 09:27:49,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45692452 passed 2025-03-22 09:27:49,572 - DEBUG - ====Verifying policy data for ctest-vn-45692452 in API_Server ====== 2025-03-22 09:27:49,572 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:27:49,580 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d 2025-03-22 09:27:49,596 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:27:49,682 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f 2025-03-22 09:27:49,697 - DEBUG - ==>Verifying data for policy with id: 8dbae5e0-411b-484a-9051-4fb0db482c1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309'] 2025-03-22 09:27:49,697 - INFO - VN ctest-vn-45692452 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-22 09:27:49,697 - DEBUG - Verifying the vn in opserver 2025-03-22 09:27:49,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452 virtual network link through opserver 10.0.0.37 2025-03-22 09:27:49,698 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-03-22 09:27:50,039 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-03-22 09:27:50,106 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452?flat'} 2025-03-22 09:27:50,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452 is found in opserver 2025-03-22 09:27:50,121 - DEBUG - Do not have enough data to verify VN in agent 2025-03-22 09:27:50,129 - DEBUG - VRF ids for VN ctest-vn-45692452: {} 2025-03-22 09:27:50,129 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:27:50,137 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d 2025-03-22 09:27:50,153 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:27:50,228 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:50,243 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:50,255 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467 2025-03-22 09:27:50,265 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467 2025-03-22 09:27:50,274 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/0aaf1b63-cd5f-4563-8267-8db31344f052 2025-03-22 09:27:50,284 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-22 09:27:50,284 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:50,296 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467 2025-03-22 09:27:50,315 - INFO - Verified VN network id 10 for VN b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:50,315 - INFO - Verifications in API Server for VN ctest-vn-97599131 passed 2025-03-22 09:27:50,315 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:50,327 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467 2025-03-22 09:27:50,335 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467 2025-03-22 09:27:50,346 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/0aaf1b63-cd5f-4563-8267-8db31344f052 2025-03-22 09:27:50,360 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28198960', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12925930459809336302', 'uuid-lslong': '11775324264590971338'}, 'enable': 'true', 'created': '2025-03-22T09:27:47', 'last-modified': '2025-03-22T09:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.560860'} 2025-03-22 09:27:50,368 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-22 09:27:50,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97599131 passed 2025-03-22 09:27:50,368 - DEBUG - ====Verifying policy data for ctest-vn-97599131 in API_Server ====== 2025-03-22 09:27:50,368 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:27:50,375 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d 2025-03-22 09:27:50,387 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:27:50,465 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca 2025-03-22 09:27:50,478 - DEBUG - ==>Verifying data for policy with id: 8dbae5e0-411b-484a-9051-4fb0db482c1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309'] 2025-03-22 09:27:50,478 - INFO - VN ctest-vn-97599131 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-22 09:27:50,478 - DEBUG - Verifying the vn in opserver 2025-03-22 09:27:50,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131 virtual network link through opserver 10.0.0.37 2025-03-22 09:27:50,478 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2025-03-22 09:27:50,493 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131?flat'} 2025-03-22 09:27:50,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131 is found in opserver 2025-03-22 09:27:50,507 - DEBUG - Do not have enough data to verify VN in agent 2025-03-22 09:27:50,513 - DEBUG - VRF ids for VN ctest-vn-97599131: {} 2025-03-22 09:27:50,581 - DEBUG - Services list from nova: [, , ] 2025-03-22 09:27:51,747 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2936-1) 2025-03-22 09:27:53,230 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2936-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2936-1) 2025-03-22 09:27:53,231 - INFO - Waiting for VM ctest-TestBasicPolicy-28198960-05723542 to be up.. 2025-03-22 09:27:53,325 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-22 09:27:58,420 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:27:58,420 - INFO - VM name : ctest-TestBasicPolicy-28198960-05723542 2025-03-22 09:27:58,503 - DEBUG - VM ctest-TestBasicPolicy-28198960-05723542 ID is 87c83bfd-8aad-40fa-9511-61653ecaad4f 2025-03-22 09:27:58,526 - DEBUG - VM ctest-TestBasicPolicy-28198960-05723542 launched on Node cn-jenkins-deploy-platform-ansible-os-2936-1 2025-03-22 09:27:58,696 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/87c83bfd-8aad-40fa-9511-61653ecaad4f 2025-03-22 09:27:58,706 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/a2a5e535-fd22-454c-89da-96b99dfe1884 2025-03-22 09:28:01,991 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1021ms') 2025-03-22 09:28:01,992 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28198960-05723542 failed! 2025-03-22 09:28:02,054 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452 is 107.140.170.65 and allocation pool is NOT set 2025-03-22 09:28:04,123 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=13.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.53 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.529/8.058/13.588/5.529 ms') 2025-03-22 09:28:04,124 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28198960-05723542 passed 2025-03-22 09:28:04,281 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:04,281 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28198960-05723542, IP 107.140.170.67, Port 22 2025-03-22 09:28:04,347 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-22 09:28:04,488 - DEBUG - VM ctest-TestBasicPolicy-28198960-05723542 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-22 09:28:09,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:09,489 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28198960-05723542, IP 107.140.170.67, Port 22 2025-03-22 09:28:09,645 - DEBUG - VM ctest-TestBasicPolicy-28198960-05723542 is ready for SSH connections 2025-03-22 09:28:09,645 - INFO - Waiting for VM ctest-TestBasicPolicy-28198960-73215337 to be up.. 2025-03-22 09:28:09,733 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:28:09,733 - INFO - VM name : ctest-TestBasicPolicy-28198960-73215337 2025-03-22 09:28:09,826 - DEBUG - VM ctest-TestBasicPolicy-28198960-73215337 ID is bb3f97fb-27e8-48ec-ad3d-0faa50afb7a9 2025-03-22 09:28:09,826 - DEBUG - VM ctest-TestBasicPolicy-28198960-73215337 launched on Node cn-jenkins-deploy-platform-ansible-os-2936-1 2025-03-22 09:28:09,915 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/bb3f97fb-27e8-48ec-ad3d-0faa50afb7a9 2025-03-22 09:28:09,926 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/355d382c-3f26-480e-89c5-667113afb6b5 2025-03-22 09:28:11,177 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.535 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.535/2.123/3.711/1.588 ms') 2025-03-22 09:28:11,177 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-28198960-73215337 passed 2025-03-22 09:28:11,341 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:11,342 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28198960-73215337, IP 58.20.219.195, Port 22 2025-03-22 09:28:11,501 - DEBUG - VM ctest-TestBasicPolicy-28198960-73215337 is ready for SSH connections 2025-03-22 09:28:11,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:11,501 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.20.219.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2025-03-22 09:28:11,501 - DEBUG - ping -s 56 -c 3 -W 1 58.20.219.195 2025-03-22 09:28:15,632 - DEBUG - PING 58.20.219.195 (58.20.219.195): 56 data bytes 64 bytes from 58.20.219.195: seq=0 ttl=63 time=4.164 ms 64 bytes from 58.20.219.195: seq=1 ttl=63 time=1.023 ms 64 bytes from 58.20.219.195: seq=2 ttl=63 time=0.930 ms --- 58.20.219.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.930/2.039/4.164 ms 2025-03-22 09:28:15,633 - INFO - Ping to IP 58.20.219.195 from VM ctest-TestBasicPolicy-28198960-05723542 passed 2025-03-22 09:28:15,821 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8dbae5e0-411b-484a-9051-4fb0db482c1f", "href": "http://10.0.0.37:8082/network-policy/8dbae5e0-411b-484a-9051-4fb0db482c1f"}} 2025-03-22 09:28:15,821 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:15,821 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 58.20.219.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2025-03-22 09:28:15,822 - DEBUG - ping -s 56 -c 3 -W 1 58.20.219.195 2025-03-22 09:28:19,055 - DEBUG - PING 58.20.219.195 (58.20.219.195): 56 data bytes 64 bytes from 58.20.219.195: seq=0 ttl=63 time=1.729 ms --- 58.20.219.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.729/1.729/1.729 ms 2025-03-22 09:28:19,056 - WARNING - Ping to IP 58.20.219.195 from VM ctest-TestBasicPolicy-28198960-05723542 failed 2025-03-22 09:28:19,056 - INFO - Deleting VM ctest-TestBasicPolicy-28198960-73215337 2025-03-22 09:28:19,145 - INFO - Deleting VM ctest-TestBasicPolicy-28198960-05723542 2025-03-22 09:28:19,648 - INFO - Deleted policy ctest-policy-allow-all-32243309 2025-03-22 09:28:19,648 - INFO - Deleting VN ctest-vn-97599131 2025-03-22 09:28:19,691 - DEBUG - VN b3622144-c856-4bee-a36a-5b07c1fb91ca still in use: Unable to complete operation on network b3622144-c856-4bee-a36a-5b07c1fb91ca. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d874b88b-8d76-47fe-a811-fccb8592ae3b'] 2025-03-22 09:28:19,691 - WARNING - Deleting VN ctest-vn-97599131 failed..Will retry 2025-03-22 09:28:21,813 - DEBUG - Response for deleting network () 2025-03-22 09:28:21,813 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467 2025-03-22 09:28:21,820 - DEBUG - Response Code: 404 2025-03-22 09:28:21,820 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:28:21,831 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d 2025-03-22 09:28:21,888 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:28:21,965 - INFO - Validated that VN ctest-vn-97599131 is not found in API Server 2025-03-22 09:28:21,981 - DEBUG - VN ctest-vn-97599131 is not present in Agent 10.0.0.37 2025-03-22 09:28:21,981 - INFO - Validated that VN ctest-vn-97599131 is not in any agent 2025-03-22 09:28:22,001 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97599131 info 2025-03-22 09:28:22,001 - INFO - Deleting VN ctest-vn-45692452 2025-03-22 09:28:22,118 - DEBUG - Response for deleting network () 2025-03-22 09:28:22,118 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078 2025-03-22 09:28:22,127 - DEBUG - Response Code: 404 2025-03-22 09:28:22,128 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2025-03-22 09:28:22,136 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d 2025-03-22 09:28:22,192 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604 2025-03-22 09:28:22,274 - INFO - Validated that VN ctest-vn-45692452 is not found in API Server 2025-03-22 09:28:22,288 - DEBUG - VN ctest-vn-45692452 is not present in Agent 10.0.0.37 2025-03-22 09:28:22,288 - INFO - Validated that VN ctest-vn-45692452 is not in any agent 2025-03-22 09:28:22,307 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45692452 info 2025-03-22 09:28:22,579 - DEBUG - No XMPP flaps were noticed during the test
2025-03-22 09:28:22,579 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-03-22 09:28:22,579 - INFO - -------------------------------------------------------------------------------- 2025-03-22 09:28:23,360 - INFO - Deleted project: ctest-TestBasicPolicy-28198960, ID : 694e0a28-2e4d-4a06-9fd2-dbec493fe604