2024-10-19 13:25:52,676 - INFO - Domain Default found not creating 2024-10-19 13:25:52,866 - INFO - Project ctest-TestBasicPolicy-94071972 not found, creating it 2024-10-19 13:25:53,550 - INFO - Created Project:ctest-TestBasicPolicy-94071972, ID : 37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:25:55,167 - INFO - ================================================================================ 2024-10-19 13:25:55,167 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-19 13:25:55,167 - 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 2024-10-19 13:25:56,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.17': '0', '10.20.0.7': '0'}, '10.0.0.37': {'10.20.0.17': '0', '10.20.0.7': '0'}} with 2024-10-19 13:25:56,476 - INFO - Initial checks done. Running the testcase now 2024-10-19 13:25:56,476 - INFO - 2024-10-19 13:25:57,420 - DEBUG - Response for create_network : {'network': {'id': 'b7523852-c58a-41e5-95a5-66a5094c7edf', 'name': 'ctest-vn-35615009', 'tenant_id': '37ff055168b74e4e99e51da96516f946', 'project_id': '37ff055168b74e4e99e51da96516f946', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-vn-35615009'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 13:25:57,867 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbba3843-1ced-4b92-9c56-a1a56ae8819c', 'name': '', 'tenant_id': '37ff055168b74e4e99e51da96516f946', 'network_id': 'b7523852-c58a-41e5-95a5-66a5094c7edf', 'ip_version': 4, 'cidr': '43.22.40.128/26', 'allocation_pools': [{'start': '43.22.40.130', 'end': '43.22.40.190'}], 'gateway_ip': '43.22.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.22.40.130', 'tags': [], 'project_id': '37ff055168b74e4e99e51da96516f946'}} 2024-10-19 13:25:57,894 - INFO - Created VN ctest-vn-35615009 2024-10-19 13:25:57,913 - DEBUG - VN ctest-vn-35615009 UUID is b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:25:58,394 - DEBUG - Response for create_network : {'network': {'id': 'fec81160-2d00-4e99-a9ce-1fdd171522a3', 'name': 'ctest-vn-75536763', 'tenant_id': '37ff055168b74e4e99e51da96516f946', 'project_id': '37ff055168b74e4e99e51da96516f946', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-vn-75536763'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 13:25:58,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '313fa130-2161-4fdd-b83b-25a178604d16', 'name': '', 'tenant_id': '37ff055168b74e4e99e51da96516f946', 'network_id': 'fec81160-2d00-4e99-a9ce-1fdd171522a3', 'ip_version': 4, 'cidr': '95.53.166.192/26', 'allocation_pools': [{'start': '95.53.166.194', 'end': '95.53.166.254'}], 'gateway_ip': '95.53.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.53.166.194', 'tags': [], 'project_id': '37ff055168b74e4e99e51da96516f946'}} 2024-10-19 13:25:58,667 - INFO - Created VN ctest-vn-75536763 2024-10-19 13:25:58,690 - DEBUG - VN ctest-vn-75536763 UUID is fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:25:58,785 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009, 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-94071972:ctest-vn-75536763, 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] 2024-10-19 13:25:59,475 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7523852-c58a-41e5-95a5-66a5094c7edf', 'name': 'ctest-vn-35615009', 'tenant_id': '37ff055168b74e4e99e51da96516f946', 'project_id': '37ff055168b74e4e99e51da96516f946', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dbba3843-1ced-4b92-9c56-a1a56ae8819c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-vn-35615009'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-policy-allow-all-95746891']], 'subnet_ipam': [{'subnet_cidr': '43.22.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 13:26:00,137 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fec81160-2d00-4e99-a9ce-1fdd171522a3', 'name': 'ctest-vn-75536763', 'tenant_id': '37ff055168b74e4e99e51da96516f946', 'project_id': '37ff055168b74e4e99e51da96516f946', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['313fa130-2161-4fdd-b83b-25a178604d16'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-vn-75536763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-policy-allow-all-95746891']], 'subnet_ipam': [{'subnet_cidr': '95.53.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 13:26:00,313 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:01,071 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:01,145 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1b64c18c-9a35-4290-a94a-f87b56febc19 2024-10-19 13:26:01,184 - DEBUG - Requesting: http://10.0.0.33:8082/project/37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:26:01,337 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:26:01,388 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:26:01,434 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/14df5d7c-4092-4851-b67f-f510ec3ffde8 2024-10-19 13:26:01,450 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/14df5d7c-4092-4851-b67f-f510ec3ffde8 2024-10-19 13:26:01,463 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a5b9e25c-832d-40ba-a9ac-f48b1741c191 2024-10-19 13:26:01,477 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 13:26:01,477 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:26:01,497 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/14df5d7c-4092-4851-b67f-f510ec3ffde8 2024-10-19 13:26:01,540 - INFO - Verified VN network id 8 for VN b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:26:01,540 - INFO - Verifications in API Server for VN ctest-vn-35615009 passed 2024-10-19 13:26:01,540 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:26:01,564 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/14df5d7c-4092-4851-b67f-f510ec3ffde8 2024-10-19 13:26:01,574 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/14df5d7c-4092-4851-b67f-f510ec3ffde8 2024-10-19 13:26:01,586 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a5b9e25c-832d-40ba-a9ac-f48b1741c191 2024-10-19 13:26:01,605 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94071972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13209682585183732197', 'uuid-lslong': '10783137741820165855'}, 'enable': 'true', 'created': '2024-10-19T13:25:57', 'last-modified': '2024-10-19T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.381855'} 2024-10-19 13:26:01,612 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 13:26:01,618 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94071972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13209682585183732197', 'uuid-lslong': '10783137741820165855'}, 'enable': 'true', 'created': '2024-10-19T13:25:57', 'last-modified': '2024-10-19T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.399828'} 2024-10-19 13:26:01,627 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 13:26:01,634 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94071972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13209682585183732197', 'uuid-lslong': '10783137741820165855'}, 'enable': 'true', 'created': '2024-10-19T13:25:57', 'last-modified': '2024-10-19T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.412253'} 2024-10-19 13:26:01,643 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 13:26:01,643 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35615009 passed 2024-10-19 13:26:01,643 - DEBUG - ====Verifying policy data for ctest-vn-35615009 in API_Server ====== 2024-10-19 13:26:01,643 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:01,651 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1b64c18c-9a35-4290-a94a-f87b56febc19 2024-10-19 13:26:01,668 - DEBUG - Requesting: http://10.0.0.33:8082/project/37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:26:01,791 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b7523852-c58a-41e5-95a5-66a5094c7edf 2024-10-19 13:26:01,820 - DEBUG - ==>Verifying data for policy with id: db4f05dd-955e-4942-a6ac-236b201912c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-policy-allow-all-95746891'] 2024-10-19 13:26:01,820 - INFO - VN ctest-vn-35615009 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 13:26:01,820 - DEBUG - Verifying the vn in opserver 2024-10-19 13:26:01,820 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009 virtual network link through opserver 10.0.0.33 2024-10-19 13:26:01,820 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-19 13:26:02,144 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-19 13:26:02,223 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009?flat'} 2024-10-19 13:26:02,223 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009 virtual network link through opserver 10.0.0.31 2024-10-19 13:26:02,223 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-19 13:26:02,532 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-19 13:26:02,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009?flat'} 2024-10-19 13:26:02,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009 virtual network link through opserver 10.0.0.42 2024-10-19 13:26:02,612 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-19 13:26:02,908 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-19 13:26:03,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009?flat'} 2024-10-19 13:26:03,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009 is found in opserver 2024-10-19 13:26:03,034 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 13:26:03,047 - DEBUG - VRF ids for VN ctest-vn-35615009: {} 2024-10-19 13:26:03,047 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:03,055 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1b64c18c-9a35-4290-a94a-f87b56febc19 2024-10-19 13:26:03,069 - DEBUG - Requesting: http://10.0.0.33:8082/project/37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:26:03,184 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:26:03,202 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:26:03,217 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a481cab-5b52-4408-af15-35cbd1f6733f 2024-10-19 13:26:03,227 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a481cab-5b52-4408-af15-35cbd1f6733f 2024-10-19 13:26:03,239 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cbdb9f1-2ef3-436a-87c5-c2845b8d9dd3 2024-10-19 13:26:03,249 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 13:26:03,249 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:26:03,266 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a481cab-5b52-4408-af15-35cbd1f6733f 2024-10-19 13:26:03,294 - INFO - Verified VN network id 9 for VN fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:26:03,294 - INFO - Verifications in API Server for VN ctest-vn-75536763 passed 2024-10-19 13:26:03,294 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:26:03,310 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a481cab-5b52-4408-af15-35cbd1f6733f 2024-10-19 13:26:03,323 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a481cab-5b52-4408-af15-35cbd1f6733f 2024-10-19 13:26:03,335 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cbdb9f1-2ef3-436a-87c5-c2845b8d9dd3 2024-10-19 13:26:03,353 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94071972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18358942985745354393', 'uuid-lslong': '12235752272047710883'}, 'enable': 'true', 'created': '2024-10-19T13:25:58', 'last-modified': '2024-10-19T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.356572'} 2024-10-19 13:26:03,362 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 13:26:03,369 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94071972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18358942985745354393', 'uuid-lslong': '12235752272047710883'}, 'enable': 'true', 'created': '2024-10-19T13:25:58', 'last-modified': '2024-10-19T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.377225'} 2024-10-19 13:26:03,378 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 13:26:03,386 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94071972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18358942985745354393', 'uuid-lslong': '12235752272047710883'}, 'enable': 'true', 'created': '2024-10-19T13:25:58', 'last-modified': '2024-10-19T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.390770'} 2024-10-19 13:26:03,396 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 13:26:03,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75536763 passed 2024-10-19 13:26:03,396 - DEBUG - ====Verifying policy data for ctest-vn-75536763 in API_Server ====== 2024-10-19 13:26:03,396 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:03,403 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1b64c18c-9a35-4290-a94a-f87b56febc19 2024-10-19 13:26:03,422 - DEBUG - Requesting: http://10.0.0.33:8082/project/37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:26:03,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fec81160-2d00-4e99-a9ce-1fdd171522a3 2024-10-19 13:26:03,567 - DEBUG - ==>Verifying data for policy with id: db4f05dd-955e-4942-a6ac-236b201912c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-94071972', 'ctest-policy-allow-all-95746891'] 2024-10-19 13:26:03,567 - INFO - VN ctest-vn-75536763 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 13:26:03,567 - DEBUG - Verifying the vn in opserver 2024-10-19 13:26:03,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763 virtual network link through opserver 10.0.0.33 2024-10-19 13:26:03,567 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-10-19 13:26:03,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763?flat'} 2024-10-19 13:26:03,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763 virtual network link through opserver 10.0.0.31 2024-10-19 13:26:03,648 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-19 13:26:03,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763?flat'} 2024-10-19 13:26:03,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763 virtual network link through opserver 10.0.0.42 2024-10-19 13:26:03,724 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-10-19 13:26:03,804 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763?flat'} 2024-10-19 13:26:03,804 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-75536763 is found in opserver 2024-10-19 13:26:03,831 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 13:26:03,844 - DEBUG - VRF ids for VN ctest-vn-75536763: {} 2024-10-19 13:26:03,904 - DEBUG - Services list from nova: [, , , ] 2024-10-19 13:26:05,124 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2117-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2117-2) 2024-10-19 13:26:06,770 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2117-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2117-1) 2024-10-19 13:26:06,770 - INFO - Waiting for VM ctest-TestBasicPolicy-94071972-28485251 to be up.. 2024-10-19 13:26:06,885 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 13:26:11,988 - DEBUG - VM is in ACTIVE state now 2024-10-19 13:26:11,988 - INFO - VM name : ctest-TestBasicPolicy-94071972-28485251 2024-10-19 13:26:12,100 - DEBUG - VM ctest-TestBasicPolicy-94071972-28485251 ID is c6c3bfc2-cb94-4673-a795-178fe014582a 2024-10-19 13:26:12,138 - DEBUG - VM ctest-TestBasicPolicy-94071972-28485251 launched on Node an-jenkins-deploy-platform-ansible-os-2117-2 2024-10-19 13:26:12,273 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/c6c3bfc2-cb94-4673-a795-178fe014582a 2024-10-19 13:26:12,581 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/c6c3bfc2-cb94-4673-a795-178fe014582a 2024-10-19 13:26:12,627 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/2211d898-214d-4320-b80b-248f09af53fc 2024-10-19 13:26:15,892 - 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 1038ms') 2024-10-19 13:26:15,892 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94071972-28485251 failed! 2024-10-19 13:26:15,915 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94071972:ctest-vn-35615009 is 43.22.40.129 and allocation pool is NOT set 2024-10-19 13:26:17,978 - 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=6.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.500 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 = 0.500/3.612/6.724/3.112 ms') 2024-10-19 13:26:17,978 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94071972-28485251 passed 2024-10-19 13:26:18,103 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 13:26:18,103 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94071972-28485251, IP 43.22.40.131, Port 22 2024-10-19 13:26:18,275 - DEBUG - VM ctest-TestBasicPolicy-94071972-28485251 is ready for SSH connections 2024-10-19 13:26:18,275 - INFO - Waiting for VM ctest-TestBasicPolicy-94071972-96720713 to be up.. 2024-10-19 13:26:18,387 - DEBUG - VM is in ACTIVE state now 2024-10-19 13:26:18,387 - INFO - VM name : ctest-TestBasicPolicy-94071972-96720713 2024-10-19 13:26:18,490 - DEBUG - VM ctest-TestBasicPolicy-94071972-96720713 ID is 8057cf55-7ab2-4269-852a-8e953a45782a 2024-10-19 13:26:18,490 - DEBUG - VM ctest-TestBasicPolicy-94071972-96720713 launched on Node an-jenkins-deploy-platform-ansible-os-2117-1 2024-10-19 13:26:18,590 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/8057cf55-7ab2-4269-852a-8e953a45782a 2024-10-19 13:26:18,607 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/df79fb7d-c98b-4c9c-a053-459b13b94644 2024-10-19 13:26:19,840 - 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=2.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.468 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 = 0.468/1.383/2.299/0.915 ms') 2024-10-19 13:26:19,840 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94071972-96720713 passed 2024-10-19 13:26:19,978 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 13:26:19,978 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94071972-96720713, IP 95.53.166.195, Port 22 2024-10-19 13:26:20,145 - DEBUG - VM ctest-TestBasicPolicy-94071972-96720713 is ready for SSH connections 2024-10-19 13:26:20,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 13:26:20,146 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.53.166.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-19 13:26:20,146 - DEBUG - ping -s 56 -c 3 -W 1 95.53.166.195 2024-10-19 13:26:24,128 - DEBUG - PING 95.53.166.195 (95.53.166.195): 56 data bytes 64 bytes from 95.53.166.195: seq=0 ttl=63 time=82.885 ms 64 bytes from 95.53.166.195: seq=1 ttl=63 time=1.640 ms 64 bytes from 95.53.166.195: seq=2 ttl=63 time=1.365 ms --- 95.53.166.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.365/28.630/82.885 ms 2024-10-19 13:26:24,129 - INFO - Ping to IP 95.53.166.195 from VM ctest-TestBasicPolicy-94071972-28485251 passed 2024-10-19 13:26:24,385 - DEBUG - Policy Update Response {"network-policy": {"uuid": "db4f05dd-955e-4942-a6ac-236b201912c8", "href": "http://10.0.0.42:8082/network-policy/db4f05dd-955e-4942-a6ac-236b201912c8"}} 2024-10-19 13:26:24,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 13:26:24,386 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.53.166.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-19 13:26:24,386 - DEBUG - ping -s 56 -c 3 -W 1 95.53.166.195 2024-10-19 13:26:27,601 - DEBUG - PING 95.53.166.195 (95.53.166.195): 56 data bytes --- 95.53.166.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-19 13:26:27,601 - WARNING - Ping to IP 95.53.166.195 from VM ctest-TestBasicPolicy-94071972-28485251 failed 2024-10-19 13:26:27,601 - INFO - Deleting VM ctest-TestBasicPolicy-94071972-96720713 2024-10-19 13:26:27,682 - INFO - Deleting VM ctest-TestBasicPolicy-94071972-28485251 2024-10-19 13:26:28,449 - INFO - Deleted policy ctest-policy-allow-all-95746891 2024-10-19 13:26:28,449 - INFO - Deleting VN ctest-vn-75536763 2024-10-19 13:26:28,523 - DEBUG - VN fec81160-2d00-4e99-a9ce-1fdd171522a3 still in use: Unable to complete operation on network fec81160-2d00-4e99-a9ce-1fdd171522a3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c3be174b-96cb-4f14-bb09-309b2f7def67'] 2024-10-19 13:26:28,523 - WARNING - Deleting VN ctest-vn-75536763 failed..Will retry 2024-10-19 13:26:30,727 - DEBUG - Response for deleting network () 2024-10-19 13:26:30,727 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5a481cab-5b52-4408-af15-35cbd1f6733f 2024-10-19 13:26:30,735 - DEBUG - Response Code: 404 2024-10-19 13:26:30,735 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:30,742 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1b64c18c-9a35-4290-a94a-f87b56febc19 2024-10-19 13:26:30,782 - DEBUG - Requesting: http://10.0.0.33:8082/project/37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:26:30,912 - INFO - Validated that VN ctest-vn-75536763 is not found in API Server 2024-10-19 13:26:30,928 - DEBUG - VN ctest-vn-75536763 is not present in Agent 10.0.0.29 2024-10-19 13:26:30,943 - DEBUG - VN ctest-vn-75536763 is not present in Agent 10.0.0.37 2024-10-19 13:26:30,943 - INFO - Validated that VN ctest-vn-75536763 is not in any agent 2024-10-19 13:26:30,994 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75536763 info 2024-10-19 13:26:30,995 - INFO - Deleting VN ctest-vn-35615009 2024-10-19 13:26:31,247 - DEBUG - Response for deleting network () 2024-10-19 13:26:31,247 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/14df5d7c-4092-4851-b67f-f510ec3ffde8 2024-10-19 13:26:31,255 - DEBUG - Response Code: 404 2024-10-19 13:26:31,255 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-10-19 13:26:31,261 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1b64c18c-9a35-4290-a94a-f87b56febc19 2024-10-19 13:26:31,283 - DEBUG - Requesting: http://10.0.0.33:8082/project/37ff0551-68b7-4e4e-99e5-1da96516f946 2024-10-19 13:26:31,417 - INFO - Validated that VN ctest-vn-35615009 is not found in API Server 2024-10-19 13:26:31,432 - DEBUG - VN ctest-vn-35615009 is not present in Agent 10.0.0.29 2024-10-19 13:26:31,444 - DEBUG - VN ctest-vn-35615009 is not present in Agent 10.0.0.37 2024-10-19 13:26:31,444 - INFO - Validated that VN ctest-vn-35615009 is not in any agent 2024-10-19 13:26:31,504 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35615009 info 2024-10-19 13:26:32,788 - DEBUG - No XMPP flaps were noticed during the test
2024-10-19 13:26:32,788 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-19 13:26:32,788 - INFO - -------------------------------------------------------------------------------- 2024-10-19 13:26:33,698 - INFO - Deleted project: ctest-TestBasicPolicy-94071972, ID : 37ff0551-68b7-4e4e-99e5-1da96516f946