2025-01-20 02:19:52,789 - INFO - Domain Default found not creating 2025-01-20 02:19:52,982 - INFO - Project ctest-TestBasicPolicy-72533368 not found, creating it 2025-01-20 02:19:53,630 - INFO - Created Project:ctest-TestBasicPolicy-72533368, ID : 4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:19:55,390 - INFO - ================================================================================ 2025-01-20 02:19:55,391 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-20 02:19:55,391 - 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-01-20 02:19:56,671 - WARNING - Test is running with cores: {'10.0.0.22': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-2650-2.1737337815'], '10.0.0.49': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-2650-3.1737337623', 'core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-2650-3.1737337815']} 2025-01-20 02:19:56,688 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.18': '0', '10.20.0.7': '0'}, '10.0.0.56': {'10.20.0.18': '0', '10.20.0.11': '0'}} with 2025-01-20 02:19:56,689 - INFO - Initial checks done. Running the testcase now 2025-01-20 02:19:56,689 - INFO - 2025-01-20 02:19:57,564 - DEBUG - Response for create_network : {'network': {'id': '88c9238e-5d52-4dc4-8dac-d50a9964463f', 'name': 'ctest-vn-22685766', 'tenant_id': '4eca85e863424d6eb096f819135a8330', 'project_id': '4eca85e863424d6eb096f819135a8330', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-vn-22685766'], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:57,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '442c14fb-6591-4498-917a-14da17854a2f', 'name': '', 'tenant_id': '4eca85e863424d6eb096f819135a8330', 'network_id': '88c9238e-5d52-4dc4-8dac-d50a9964463f', 'ip_version': 4, 'cidr': '145.216.178.192/26', 'allocation_pools': [{'start': '145.216.178.194', 'end': '145.216.178.254'}], 'gateway_ip': '145.216.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.216.178.194', 'tags': [], 'project_id': '4eca85e863424d6eb096f819135a8330'}} 2025-01-20 02:19:57,950 - INFO - Created VN ctest-vn-22685766 2025-01-20 02:19:57,965 - DEBUG - VN ctest-vn-22685766 UUID is 88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:19:58,771 - DEBUG - Response for create_network : {'network': {'id': 'c21b276e-b18a-4701-af0d-f947dc0a2692', 'name': 'ctest-vn-03827785', 'tenant_id': '4eca85e863424d6eb096f819135a8330', 'project_id': '4eca85e863424d6eb096f819135a8330', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-vn-03827785'], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:59,090 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab9f1aad-c28f-4be4-9497-2b35b971d666', 'name': '', 'tenant_id': '4eca85e863424d6eb096f819135a8330', 'network_id': 'c21b276e-b18a-4701-af0d-f947dc0a2692', 'ip_version': 4, 'cidr': '114.62.198.192/26', 'allocation_pools': [{'start': '114.62.198.194', 'end': '114.62.198.254'}], 'gateway_ip': '114.62.198.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.62.198.194', 'tags': [], 'project_id': '4eca85e863424d6eb096f819135a8330'}} 2025-01-20 02:19:59,140 - INFO - Created VN ctest-vn-03827785 2025-01-20 02:19:59,162 - DEBUG - VN ctest-vn-03827785 UUID is c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:19:59,281 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766, 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-72533368:ctest-vn-03827785, 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-01-20 02:19:59,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88c9238e-5d52-4dc4-8dac-d50a9964463f', 'name': 'ctest-vn-22685766', 'tenant_id': '4eca85e863424d6eb096f819135a8330', 'project_id': '4eca85e863424d6eb096f819135a8330', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['442c14fb-6591-4498-917a-14da17854a2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-vn-22685766'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-policy-allow-all-06661252']], 'subnet_ipam': [{'subnet_cidr': '145.216.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:19:59,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c21b276e-b18a-4701-af0d-f947dc0a2692', 'name': 'ctest-vn-03827785', 'tenant_id': '4eca85e863424d6eb096f819135a8330', 'project_id': '4eca85e863424d6eb096f819135a8330', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab9f1aad-c28f-4be4-9497-2b35b971d666'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-vn-03827785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-policy-allow-all-06661252']], 'subnet_ipam': [{'subnet_cidr': '114.62.198.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-20 02:20:00,132 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:00,562 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:00,603 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5e738284-bb49-4a6f-8f2b-7e012ef06d36 2025-01-20 02:20:00,633 - DEBUG - Requesting: http://10.0.0.42:8082/project/4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:20:00,778 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:20:00,808 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:20:00,828 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/10ead789-f99d-4614-be51-a6a181e5b476 2025-01-20 02:20:00,842 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/10ead789-f99d-4614-be51-a6a181e5b476 2025-01-20 02:20:00,857 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/f1e45bf6-2483-48d0-966c-3e42a57124f5 2025-01-20 02:20:00,884 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-20 02:20:00,884 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:20:00,910 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/10ead789-f99d-4614-be51-a6a181e5b476 2025-01-20 02:20:00,944 - INFO - Verified VN network id 7 for VN 88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:20:00,944 - INFO - Verifications in API Server for VN ctest-vn-22685766 passed 2025-01-20 02:20:00,944 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:20:00,963 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/10ead789-f99d-4614-be51-a6a181e5b476 2025-01-20 02:20:00,976 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/10ead789-f99d-4614-be51-a6a181e5b476 2025-01-20 02:20:00,988 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/f1e45bf6-2483-48d0-966c-3e42a57124f5 2025-01-20 02:20:01,023 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72533368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9856448353835044292', 'uuid-lslong': '10208768696841946687'}, 'enable': 'true', 'created': '2025-01-20T02:19:57', 'last-modified': '2025-01-20T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355972'} 2025-01-20 02:20:01,032 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-20 02:20:01,046 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72533368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9856448353835044292', 'uuid-lslong': '10208768696841946687'}, 'enable': 'true', 'created': '2025-01-20T02:19:57', 'last-modified': '2025-01-20T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.370242'} 2025-01-20 02:20:01,059 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-20 02:20:01,070 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72533368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9856448353835044292', 'uuid-lslong': '10208768696841946687'}, 'enable': 'true', 'created': '2025-01-20T02:19:57', 'last-modified': '2025-01-20T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388221'} 2025-01-20 02:20:01,084 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-20 02:20:01,084 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22685766 passed 2025-01-20 02:20:01,084 - DEBUG - ====Verifying policy data for ctest-vn-22685766 in API_Server ====== 2025-01-20 02:20:01,084 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:01,095 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5e738284-bb49-4a6f-8f2b-7e012ef06d36 2025-01-20 02:20:01,113 - DEBUG - Requesting: http://10.0.0.42:8082/project/4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:20:01,284 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/88c9238e-5d52-4dc4-8dac-d50a9964463f 2025-01-20 02:20:01,302 - DEBUG - ==>Verifying data for policy with id: 1ee93a89-db1c-4eb0-9546-6d1dc842076d, fqn: ['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-policy-allow-all-06661252'] 2025-01-20 02:20:01,302 - INFO - VN ctest-vn-22685766 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-20 02:20:01,302 - DEBUG - Verifying the vn in opserver 2025-01-20 02:20:01,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766 virtual network link through opserver 10.0.0.42 2025-01-20 02:20:01,307 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-20 02:20:01,641 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-20 02:20:01,722 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766?flat'} 2025-01-20 02:20:01,722 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766 virtual network link through opserver 10.0.0.22 2025-01-20 02:20:01,722 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-20 02:20:02,042 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-20 02:20:02,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766?flat'} 2025-01-20 02:20:02,132 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766 virtual network link through opserver 10.0.0.49 2025-01-20 02:20:02,132 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-01-20 02:20:02,451 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-01-20 02:20:02,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766?flat'} 2025-01-20 02:20:02,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766 is found in opserver 2025-01-20 02:20:02,571 - DEBUG - Do not have enough data to verify VN in agent 2025-01-20 02:20:02,589 - DEBUG - VRF ids for VN ctest-vn-22685766: {} 2025-01-20 02:20:02,589 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:02,609 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5e738284-bb49-4a6f-8f2b-7e012ef06d36 2025-01-20 02:20:02,635 - DEBUG - Requesting: http://10.0.0.42:8082/project/4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:20:02,774 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:20:02,798 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:20:02,815 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e1812256-d7ad-4f53-86af-b351f4518f83 2025-01-20 02:20:02,841 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e1812256-d7ad-4f53-86af-b351f4518f83 2025-01-20 02:20:02,853 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/3d547df3-8dc6-4191-a23d-741c79a6020e 2025-01-20 02:20:02,864 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-20 02:20:02,864 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:20:02,882 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e1812256-d7ad-4f53-86af-b351f4518f83 2025-01-20 02:20:02,904 - INFO - Verified VN network id 8 for VN c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:20:02,904 - INFO - Verifications in API Server for VN ctest-vn-03827785 passed 2025-01-20 02:20:02,904 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:20:02,918 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e1812256-d7ad-4f53-86af-b351f4518f83 2025-01-20 02:20:02,929 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e1812256-d7ad-4f53-86af-b351f4518f83 2025-01-20 02:20:02,939 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/3d547df3-8dc6-4191-a23d-741c79a6020e 2025-01-20 02:20:02,958 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72533368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13986816424107722497', 'uuid-lslong': '12614012218364274322'}, 'enable': 'true', 'created': '2025-01-20T02:19:58', 'last-modified': '2025-01-20T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.000172'} 2025-01-20 02:20:02,968 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-20 02:20:02,976 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72533368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13986816424107722497', 'uuid-lslong': '12614012218364274322'}, 'enable': 'true', 'created': '2025-01-20T02:19:58', 'last-modified': '2025-01-20T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.038387'} 2025-01-20 02:20:02,985 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-20 02:20:02,994 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72533368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13986816424107722497', 'uuid-lslong': '12614012218364274322'}, 'enable': 'true', 'created': '2025-01-20T02:19:58', 'last-modified': '2025-01-20T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.044113'} 2025-01-20 02:20:03,006 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-20 02:20:03,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03827785 passed 2025-01-20 02:20:03,006 - DEBUG - ====Verifying policy data for ctest-vn-03827785 in API_Server ====== 2025-01-20 02:20:03,006 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:03,016 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5e738284-bb49-4a6f-8f2b-7e012ef06d36 2025-01-20 02:20:03,035 - DEBUG - Requesting: http://10.0.0.42:8082/project/4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:20:03,150 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c21b276e-b18a-4701-af0d-f947dc0a2692 2025-01-20 02:20:03,165 - DEBUG - ==>Verifying data for policy with id: 1ee93a89-db1c-4eb0-9546-6d1dc842076d, fqn: ['default-domain', 'ctest-TestBasicPolicy-72533368', 'ctest-policy-allow-all-06661252'] 2025-01-20 02:20:03,165 - INFO - VN ctest-vn-03827785 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-20 02:20:03,166 - DEBUG - Verifying the vn in opserver 2025-01-20 02:20:03,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785 virtual network link through opserver 10.0.0.42 2025-01-20 02:20:03,166 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-20 02:20:03,242 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785?flat'} 2025-01-20 02:20:03,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785 virtual network link through opserver 10.0.0.22 2025-01-20 02:20:03,242 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-01-20 02:20:03,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785?flat'} 2025-01-20 02:20:03,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785 virtual network link through opserver 10.0.0.49 2025-01-20 02:20:03,320 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-01-20 02:20:03,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785?flat'} 2025-01-20 02:20:03,401 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-03827785 is found in opserver 2025-01-20 02:20:03,605 - DEBUG - Do not have enough data to verify VN in agent 2025-01-20 02:20:03,622 - DEBUG - VRF ids for VN ctest-vn-03827785: {} 2025-01-20 02:20:03,697 - DEBUG - Services list from nova: [, , , ] 2025-01-20 02:20:04,990 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2650-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2650-2) 2025-01-20 02:20:06,876 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2650-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2650-1) 2025-01-20 02:20:06,876 - INFO - Waiting for VM ctest-TestBasicPolicy-72533368-88889473 to be up.. 2025-01-20 02:20:07,002 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-20 02:20:12,120 - DEBUG - VM is in ACTIVE state now 2025-01-20 02:20:12,120 - INFO - VM name : ctest-TestBasicPolicy-72533368-88889473 2025-01-20 02:20:12,239 - DEBUG - VM ctest-TestBasicPolicy-72533368-88889473 ID is 694726d8-2db7-478e-aadd-49f9fbbcfbca 2025-01-20 02:20:12,270 - DEBUG - VM ctest-TestBasicPolicy-72533368-88889473 launched on Node an-jenkins-deploy-platform-ansible-os-2650-2 2025-01-20 02:20:12,384 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/694726d8-2db7-478e-aadd-49f9fbbcfbca 2025-01-20 02:20:12,699 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/694726d8-2db7-478e-aadd-49f9fbbcfbca 2025-01-20 02:20:12,750 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/257a7f61-3d03-4e84-89a9-f145626a6ca6 2025-01-20 02:20:16,005 - 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 1007ms') 2025-01-20 02:20:16,005 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72533368-88889473 failed! 2025-01-20 02:20:16,037 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-72533368:ctest-vn-22685766 is 145.216.178.193 and allocation pool is NOT set 2025-01-20 02:20:18,112 - 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=15.8 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.43 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 = 1.432/8.640/15.848/7.208 ms') 2025-01-20 02:20:18,112 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72533368-88889473 passed 2025-01-20 02:20:18,242 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:20:18,242 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72533368-88889473, IP 145.216.178.195, Port 22 2025-01-20 02:20:18,310 - 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-01-20 02:20:18,418 - DEBUG - VM ctest-TestBasicPolicy-72533368-88889473 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-20 02:20:23,418 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:20:23,419 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72533368-88889473, IP 145.216.178.195, Port 22 2025-01-20 02:20:23,594 - DEBUG - VM ctest-TestBasicPolicy-72533368-88889473 is ready for SSH connections 2025-01-20 02:20:23,595 - INFO - Waiting for VM ctest-TestBasicPolicy-72533368-98286901 to be up.. 2025-01-20 02:20:23,728 - DEBUG - VM is in ACTIVE state now 2025-01-20 02:20:23,728 - INFO - VM name : ctest-TestBasicPolicy-72533368-98286901 2025-01-20 02:20:23,881 - DEBUG - VM ctest-TestBasicPolicy-72533368-98286901 ID is ee578367-2921-4a1c-b1c1-2411009dfefd 2025-01-20 02:20:23,881 - DEBUG - VM ctest-TestBasicPolicy-72533368-98286901 launched on Node an-jenkins-deploy-platform-ansible-os-2650-1 2025-01-20 02:20:24,023 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/ee578367-2921-4a1c-b1c1-2411009dfefd 2025-01-20 02:20:24,038 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/c3a0d84a-3610-479a-86c9-2a752e5bf1fb 2025-01-20 02:20:25,270 - 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=4.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.549 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.549/2.424/4.300/1.875 ms') 2025-01-20 02:20:25,270 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-72533368-98286901 passed 2025-01-20 02:20:25,391 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:20:25,392 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-72533368-98286901, IP 114.62.198.195, Port 22 2025-01-20 02:20:25,566 - DEBUG - VM ctest-TestBasicPolicy-72533368-98286901 is ready for SSH connections 2025-01-20 02:20:25,567 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:20:25,567 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.62.198.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-01-20 02:20:25,567 - DEBUG - ping -s 56 -c 3 -W 1 114.62.198.195 2025-01-20 02:20:29,820 - DEBUG - PING 114.62.198.195 (114.62.198.195): 56 data bytes 64 bytes from 114.62.198.195: seq=0 ttl=63 time=7.694 ms 64 bytes from 114.62.198.195: seq=1 ttl=63 time=1.962 ms 64 bytes from 114.62.198.195: seq=2 ttl=63 time=1.314 ms --- 114.62.198.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.314/3.656/7.694 ms 2025-01-20 02:20:29,820 - INFO - Ping to IP 114.62.198.195 from VM ctest-TestBasicPolicy-72533368-88889473 passed 2025-01-20 02:20:30,052 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1ee93a89-db1c-4eb0-9546-6d1dc842076d", "href": "http://10.0.0.49:8082/network-policy/1ee93a89-db1c-4eb0-9546-6d1dc842076d"}} 2025-01-20 02:20:30,052 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-20 02:20:30,052 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.62.198.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-01-20 02:20:30,052 - DEBUG - ping -s 56 -c 3 -W 1 114.62.198.195 2025-01-20 02:20:33,312 - DEBUG - PING 114.62.198.195 (114.62.198.195): 56 data bytes --- 114.62.198.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-20 02:20:33,313 - WARNING - Ping to IP 114.62.198.195 from VM ctest-TestBasicPolicy-72533368-88889473 failed 2025-01-20 02:20:33,313 - INFO - Deleting VM ctest-TestBasicPolicy-72533368-98286901 2025-01-20 02:20:33,436 - INFO - Deleting VM ctest-TestBasicPolicy-72533368-88889473 2025-01-20 02:20:34,069 - INFO - Deleted policy ctest-policy-allow-all-06661252 2025-01-20 02:20:34,070 - INFO - Deleting VN ctest-vn-03827785 2025-01-20 02:20:34,138 - DEBUG - VN c21b276e-b18a-4701-af0d-f947dc0a2692 still in use: Unable to complete operation on network c21b276e-b18a-4701-af0d-f947dc0a2692. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c078b9f8-dea4-4c44-997d-cfad38b94c07'] 2025-01-20 02:20:34,138 - WARNING - Deleting VN ctest-vn-03827785 failed..Will retry 2025-01-20 02:20:36,437 - DEBUG - Response for deleting network () 2025-01-20 02:20:36,437 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/e1812256-d7ad-4f53-86af-b351f4518f83 2025-01-20 02:20:36,446 - DEBUG - Response Code: 404 2025-01-20 02:20:36,446 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:36,455 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5e738284-bb49-4a6f-8f2b-7e012ef06d36 2025-01-20 02:20:36,516 - DEBUG - Requesting: http://10.0.0.42:8082/project/4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:20:36,654 - INFO - Validated that VN ctest-vn-03827785 is not found in API Server 2025-01-20 02:20:36,670 - DEBUG - VN ctest-vn-03827785 is not present in Agent 10.0.0.45 2025-01-20 02:20:36,685 - DEBUG - VN ctest-vn-03827785 is not present in Agent 10.0.0.56 2025-01-20 02:20:36,685 - INFO - Validated that VN ctest-vn-03827785 is not in any agent 2025-01-20 02:20:36,731 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03827785 info 2025-01-20 02:20:36,731 - INFO - Deleting VN ctest-vn-22685766 2025-01-20 02:20:36,935 - DEBUG - Response for deleting network () 2025-01-20 02:20:36,935 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/10ead789-f99d-4614-be51-a6a181e5b476 2025-01-20 02:20:36,946 - DEBUG - Response Code: 404 2025-01-20 02:20:36,946 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-20 02:20:36,957 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5e738284-bb49-4a6f-8f2b-7e012ef06d36 2025-01-20 02:20:36,984 - DEBUG - Requesting: http://10.0.0.42:8082/project/4eca85e8-6342-4d6e-b096-f819135a8330 2025-01-20 02:20:37,075 - INFO - Validated that VN ctest-vn-22685766 is not found in API Server 2025-01-20 02:20:37,096 - DEBUG - VN ctest-vn-22685766 is not present in Agent 10.0.0.45 2025-01-20 02:20:37,111 - DEBUG - VN ctest-vn-22685766 is not present in Agent 10.0.0.56 2025-01-20 02:20:37,111 - INFO - Validated that VN ctest-vn-22685766 is not in any agent 2025-01-20 02:20:37,160 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22685766 info 2025-01-20 02:20:38,460 - DEBUG - No XMPP flaps were noticed during the test
2025-01-20 02:20:38,460 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:43]
2025-01-20 02:20:38,460 - INFO - -------------------------------------------------------------------------------- 2025-01-20 02:20:39,273 - INFO - Deleted project: ctest-TestBasicPolicy-72533368, ID : 4eca85e8-6342-4d6e-b096-f819135a8330