2026-03-09 02:31:44,250 - INFO - Domain Default found not creating 2026-03-09 02:31:44,421 - INFO - Project ctest-TestBasicPolicy-38534224 not found, creating it 2026-03-09 02:31:44,860 - INFO - Created Project:ctest-TestBasicPolicy-38534224, ID : 372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:31:46,343 - INFO - ================================================================================ 2026-03-09 02:31:46,343 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-03-09 02:31:46,343 - 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 2026-03-09 02:31:47,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2026-03-09 02:31:47,625 - INFO - Initial checks done. Running the testcase now 2026-03-09 02:31:47,625 - INFO - 2026-03-09 02:31:48,281 - DEBUG - Response for create_network : {'network': {'id': '607db1c5-5194-43cc-bf2b-ae67a8b32744', 'name': 'ctest-vn-36974816', 'tenant_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'project_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-vn-36974816'], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:31:48,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '9afb343f-9490-4c29-aebc-d1a41c28f1bf', 'name': '', 'tenant_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'network_id': '607db1c5-5194-43cc-bf2b-ae67a8b32744', 'ip_version': 4, 'cidr': '137.173.152.128/26', 'allocation_pools': [{'start': '137.173.152.130', 'end': '137.173.152.190'}], 'gateway_ip': '137.173.152.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.173.152.130', 'tags': [], 'project_id': '372dbc0ffaca48b9a2e3de0f0085279d'}} 2026-03-09 02:31:48,609 - INFO - Created VN ctest-vn-36974816 2026-03-09 02:31:48,620 - DEBUG - VN ctest-vn-36974816 UUID is 607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:48,968 - DEBUG - Response for create_network : {'network': {'id': '85be8b92-f50f-40ce-81be-e1627502cc2c', 'name': 'ctest-vn-16930009', 'tenant_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'project_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-vn-16930009'], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:31:49,259 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6201d23-319a-4c00-a9b9-97e15ee34068', 'name': '', 'tenant_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'network_id': '85be8b92-f50f-40ce-81be-e1627502cc2c', 'ip_version': 4, 'cidr': '47.249.121.128/26', 'allocation_pools': [{'start': '47.249.121.130', 'end': '47.249.121.190'}], 'gateway_ip': '47.249.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.249.121.130', 'tags': [], 'project_id': '372dbc0ffaca48b9a2e3de0f0085279d'}} 2026-03-09 02:31:49,284 - INFO - Created VN ctest-vn-16930009 2026-03-09 02:31:49,297 - DEBUG - VN ctest-vn-16930009 UUID is 85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:49,373 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816, 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-38534224:ctest-vn-16930009, 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] 2026-03-09 02:31:49,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '607db1c5-5194-43cc-bf2b-ae67a8b32744', 'name': 'ctest-vn-36974816', 'tenant_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'project_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9afb343f-9490-4c29-aebc-d1a41c28f1bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-vn-36974816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-policy-allow-all-19532862']], 'subnet_ipam': [{'subnet_cidr': '137.173.152.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:31:49,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85be8b92-f50f-40ce-81be-e1627502cc2c', 'name': 'ctest-vn-16930009', 'tenant_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'project_id': '372dbc0ffaca48b9a2e3de0f0085279d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6201d23-319a-4c00-a9b9-97e15ee34068'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-vn-16930009'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-policy-allow-all-19532862']], 'subnet_ipam': [{'subnet_cidr': '47.249.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:31:50,004 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:31:50,328 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:31:50,357 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:31:50,371 - DEBUG - Requesting: http://10.0.0.22:8082/project/372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:31:50,462 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:50,471 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:50,480 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f054aca-54a5-4476-b152-65a18fa61938 2026-03-09 02:31:50,486 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f054aca-54a5-4476-b152-65a18fa61938 2026-03-09 02:31:50,492 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7fb3706e-797a-4e97-a6ee-8aa26b1891c3 2026-03-09 02:31:50,498 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:31:50,498 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:50,506 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f054aca-54a5-4476-b152-65a18fa61938 2026-03-09 02:31:50,520 - INFO - Verified VN network id 10 for VN 607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:50,520 - INFO - Verifications in API Server for VN ctest-vn-36974816 passed 2026-03-09 02:31:50,521 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:50,530 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f054aca-54a5-4476-b152-65a18fa61938 2026-03-09 02:31:50,537 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f054aca-54a5-4476-b152-65a18fa61938 2026-03-09 02:31:50,544 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7fb3706e-797a-4e97-a6ee-8aa26b1891c3 2026-03-09 02:31:50,555 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38534224', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6952908860765258700', 'uuid-lslong': '13775295645477971780'}, 'enable': 'true', 'created': '2026-03-09T02:31:48', 'last-modified': '2026-03-09T02:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891958'} 2026-03-09 02:31:50,560 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:31:50,565 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38534224', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6952908860765258700', 'uuid-lslong': '13775295645477971780'}, 'enable': 'true', 'created': '2026-03-09T02:31:48', 'last-modified': '2026-03-09T02:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904225'} 2026-03-09 02:31:50,572 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:31:50,577 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38534224', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6952908860765258700', 'uuid-lslong': '13775295645477971780'}, 'enable': 'true', 'created': '2026-03-09T02:31:48', 'last-modified': '2026-03-09T02:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915222'} 2026-03-09 02:31:50,583 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:31:50,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36974816 passed 2026-03-09 02:31:50,583 - DEBUG - ====Verifying policy data for ctest-vn-36974816 in API_Server ====== 2026-03-09 02:31:50,583 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:31:50,589 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:31:50,600 - DEBUG - Requesting: http://10.0.0.22:8082/project/372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:31:50,688 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/607db1c5-5194-43cc-bf2b-ae67a8b32744 2026-03-09 02:31:50,697 - DEBUG - ==>Verifying data for policy with id: a3e84002-22bc-44e2-bbe6-bdfaeb91b172, fqn: ['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-policy-allow-all-19532862'] 2026-03-09 02:31:50,697 - INFO - VN ctest-vn-36974816 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-09 02:31:50,697 - DEBUG - Verifying the vn in opserver 2026-03-09 02:31:50,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 virtual network link through opserver 10.0.0.22 2026-03-09 02:31:50,697 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-09 02:31:50,995 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-09 02:31:51,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816?flat'} 2026-03-09 02:31:51,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 virtual network link through opserver 10.0.0.249 2026-03-09 02:31:51,053 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-09 02:31:51,346 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-09 02:31:51,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816?flat'} 2026-03-09 02:31:51,400 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 virtual network link through opserver 10.0.0.23 2026-03-09 02:31:51,400 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-09 02:31:51,700 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-09 02:31:51,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816?flat'} 2026-03-09 02:31:51,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is found in opserver 2026-03-09 02:31:51,779 - DEBUG - Do not have enough data to verify VN in agent 2026-03-09 02:31:51,788 - DEBUG - VRF ids for VN ctest-vn-36974816: {} 2026-03-09 02:31:51,788 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:31:51,794 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:31:51,804 - DEBUG - Requesting: http://10.0.0.22:8082/project/372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:31:51,898 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:51,913 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:51,928 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0d2d46b-7570-4a39-bccb-53c54e3c9a97 2026-03-09 02:31:51,935 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0d2d46b-7570-4a39-bccb-53c54e3c9a97 2026-03-09 02:31:51,943 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/daa686bf-be43-449a-ab5d-608d9474dc88 2026-03-09 02:31:51,948 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-09 02:31:51,948 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:51,957 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0d2d46b-7570-4a39-bccb-53c54e3c9a97 2026-03-09 02:31:51,972 - INFO - Verified VN network id 11 for VN 85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:51,972 - INFO - Verifications in API Server for VN ctest-vn-16930009 passed 2026-03-09 02:31:51,972 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:51,987 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0d2d46b-7570-4a39-bccb-53c54e3c9a97 2026-03-09 02:31:51,994 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0d2d46b-7570-4a39-bccb-53c54e3c9a97 2026-03-09 02:31:52,001 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/daa686bf-be43-449a-ab5d-608d9474dc88 2026-03-09 02:31:52,014 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38534224', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9637293715912343758', 'uuid-lslong': '9349157689453890604'}, 'enable': 'true', 'created': '2026-03-09T02:31:48', 'last-modified': '2026-03-09T02:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.152087'} 2026-03-09 02:31:52,022 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-09 02:31:52,029 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38534224', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9637293715912343758', 'uuid-lslong': '9349157689453890604'}, 'enable': 'true', 'created': '2026-03-09T02:31:48', 'last-modified': '2026-03-09T02:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.168938'} 2026-03-09 02:31:52,035 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-09 02:31:52,040 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38534224', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9637293715912343758', 'uuid-lslong': '9349157689453890604'}, 'enable': 'true', 'created': '2026-03-09T02:31:48', 'last-modified': '2026-03-09T02:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.180545'} 2026-03-09 02:31:52,047 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-09 02:31:52,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16930009 passed 2026-03-09 02:31:52,047 - DEBUG - ====Verifying policy data for ctest-vn-16930009 in API_Server ====== 2026-03-09 02:31:52,048 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:31:52,053 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:31:52,065 - DEBUG - Requesting: http://10.0.0.22:8082/project/372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:31:52,144 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/85be8b92-f50f-40ce-81be-e1627502cc2c 2026-03-09 02:31:52,155 - DEBUG - ==>Verifying data for policy with id: a3e84002-22bc-44e2-bbe6-bdfaeb91b172, fqn: ['default-domain', 'ctest-TestBasicPolicy-38534224', 'ctest-policy-allow-all-19532862'] 2026-03-09 02:31:52,155 - INFO - VN ctest-vn-16930009 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-09 02:31:52,155 - DEBUG - Verifying the vn in opserver 2026-03-09 02:31:52,155 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009 virtual network link through opserver 10.0.0.22 2026-03-09 02:31:52,155 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-09 02:31:52,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009?flat'} 2026-03-09 02:31:52,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009 virtual network link through opserver 10.0.0.249 2026-03-09 02:31:52,207 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-09 02:31:52,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009?flat'} 2026-03-09 02:31:52,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009 virtual network link through opserver 10.0.0.23 2026-03-09 02:31:52,268 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-09 02:31:52,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009?flat'} 2026-03-09 02:31:52,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-16930009 is found in opserver 2026-03-09 02:31:52,348 - DEBUG - Do not have enough data to verify VN in agent 2026-03-09 02:31:52,358 - DEBUG - VRF ids for VN ctest-vn-16930009: {} 2026-03-09 02:31:52,415 - DEBUG - Services list from nova: [, , , ] 2026-03-09 02:31:53,568 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5454-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5454-1) 2026-03-09 02:31:54,940 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5454-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5454-2) 2026-03-09 02:31:54,940 - INFO - Waiting for VM ctest-TestBasicPolicy-38534224-61783266 to be up.. 2026-03-09 02:31:55,044 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-03-09 02:32:00,134 - DEBUG - VM is in ACTIVE state now 2026-03-09 02:32:00,134 - INFO - VM name : ctest-TestBasicPolicy-38534224-61783266 2026-03-09 02:32:00,214 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 ID is dc0a3e11-fce0-468a-bac9-bd3d62746e1a 2026-03-09 02:32:00,239 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 launched on Node an-jenkins-deploy-platform-ansible-os-5454-1 2026-03-09 02:32:00,325 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/dc0a3e11-fce0-468a-bac9-bd3d62746e1a 2026-03-09 02:32:00,633 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/dc0a3e11-fce0-468a-bac9-bd3d62746e1a 2026-03-09 02:32:00,670 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/7b88615b-e99b-4291-851e-b803897e5aa1 2026-03-09 02:32:03,860 - 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 1034ms') 2026-03-09 02:32:03,860 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:03,876 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:07,957 - 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 1017ms') 2026-03-09 02:32:07,957 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:07,970 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:12,055 - 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 1022ms') 2026-03-09 02:32:12,055 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:12,069 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:16,156 - 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 1022ms') 2026-03-09 02:32:16,156 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:16,169 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:20,244 - 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 1015ms') 2026-03-09 02:32:20,244 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:20,258 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:24,342 - 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 1026ms') 2026-03-09 02:32:24,342 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:24,357 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:28,433 - 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 1017ms') 2026-03-09 02:32:28,433 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:28,448 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:32,532 - 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 1022ms') 2026-03-09 02:32:32,533 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 failed! 2026-03-09 02:32:32,545 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38534224:ctest-vn-36974816 is 137.173.152.129 and allocation pool is NOT set 2026-03-09 02:32:34,605 - 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=5.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.756 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.756/3.290/5.824/2.534 ms') 2026-03-09 02:32:34,605 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-61783266 passed 2026-03-09 02:32:34,672 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:34,672 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38534224-61783266, IP 137.173.152.131, Port 22 2026-03-09 02:32:34,742 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-03-09 02:32:34,862 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-09 02:32:39,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:39,863 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38534224-61783266, IP 137.173.152.131, Port 22 2026-03-09 02:32:39,929 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-03-09 02:32:40,003 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-09 02:32:45,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:45,004 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38534224-61783266, IP 137.173.152.131, Port 22 2026-03-09 02:32:45,068 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-03-09 02:32:45,163 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-09 02:32:50,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:50,164 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38534224-61783266, IP 137.173.152.131, Port 22 2026-03-09 02:32:50,233 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-03-09 02:32:50,316 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-09 02:32:55,317 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:55,318 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38534224-61783266, IP 137.173.152.131, Port 22 2026-03-09 02:32:55,479 - DEBUG - VM ctest-TestBasicPolicy-38534224-61783266 is ready for SSH connections 2026-03-09 02:32:55,479 - INFO - Waiting for VM ctest-TestBasicPolicy-38534224-46413951 to be up.. 2026-03-09 02:32:55,561 - DEBUG - VM is in ACTIVE state now 2026-03-09 02:32:55,561 - INFO - VM name : ctest-TestBasicPolicy-38534224-46413951 2026-03-09 02:32:55,651 - DEBUG - VM ctest-TestBasicPolicy-38534224-46413951 ID is badc0aa4-1d5b-40b8-add9-f21a793fb715 2026-03-09 02:32:55,652 - DEBUG - VM ctest-TestBasicPolicy-38534224-46413951 launched on Node an-jenkins-deploy-platform-ansible-os-5454-2 2026-03-09 02:32:55,742 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/badc0aa4-1d5b-40b8-add9-f21a793fb715 2026-03-09 02:32:55,753 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/4ccb7e44-b2f8-47f7-af6f-bcf9829c9a74 2026-03-09 02:32:56,911 - 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.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.693 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.693/1.531/2.369/0.838 ms') 2026-03-09 02:32:56,911 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38534224-46413951 passed 2026-03-09 02:32:56,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:56,975 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38534224-46413951, IP 47.249.121.131, Port 22 2026-03-09 02:32:57,148 - DEBUG - VM ctest-TestBasicPolicy-38534224-46413951 is ready for SSH connections 2026-03-09 02:32:57,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:32:57,148 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.249.121.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-03-09 02:32:57,148 - DEBUG - ping -s 56 -c 3 -W 1 47.249.121.131 2026-03-09 02:33:19,918 - DEBUG - PING 47.249.121.131 (47.249.121.131) 56(84) bytes of data. 64 bytes from 47.249.121.131: icmp_req=1 ttl=63 time=10.5 ms 64 bytes from 47.249.121.131: icmp_req=2 ttl=63 time=2.12 ms 64 bytes from 47.249.121.131: icmp_req=3 ttl=63 time=1.69 ms --- 47.249.121.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2006ms rtt min/avg/max/mdev = 1.698/4.783/10.530/4.067 ms 2026-03-09 02:33:19,918 - INFO - Ping to IP 47.249.121.131 from VM ctest-TestBasicPolicy-38534224-61783266 passed 2026-03-09 02:33:20,103 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a3e84002-22bc-44e2-bbe6-bdfaeb91b172", "href": "http://10.0.0.23:8082/network-policy/a3e84002-22bc-44e2-bbe6-bdfaeb91b172"}} 2026-03-09 02:33:20,104 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-09 02:33:20,104 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.249.121.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-03-09 02:33:20,104 - DEBUG - ping -s 56 -c 3 -W 1 47.249.121.131 2026-03-09 02:33:24,109 - DEBUG - PING 47.249.121.131 (47.249.121.131) 56(84) bytes of data. --- 47.249.121.131 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2017ms 2026-03-09 02:33:24,109 - WARNING - Ping to IP 47.249.121.131 from VM ctest-TestBasicPolicy-38534224-61783266 failed 2026-03-09 02:33:24,109 - INFO - Deleting VM ctest-TestBasicPolicy-38534224-46413951 2026-03-09 02:33:24,180 - INFO - Deleting VM ctest-TestBasicPolicy-38534224-61783266 2026-03-09 02:33:24,623 - INFO - Deleted policy ctest-policy-allow-all-19532862 2026-03-09 02:33:24,623 - INFO - Deleting VN ctest-vn-16930009 2026-03-09 02:33:24,666 - DEBUG - VN 85be8b92-f50f-40ce-81be-e1627502cc2c still in use: Unable to complete operation on network 85be8b92-f50f-40ce-81be-e1627502cc2c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b8a74784-53c1-4504-a864-f6720e271ba4'] 2026-03-09 02:33:24,666 - WARNING - Deleting VN ctest-vn-16930009 failed..Will retry 2026-03-09 02:33:26,812 - DEBUG - Response for deleting network () 2026-03-09 02:33:26,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c0d2d46b-7570-4a39-bccb-53c54e3c9a97 2026-03-09 02:33:26,824 - DEBUG - Response Code: 404 2026-03-09 02:33:26,824 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:33:26,833 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:33:26,891 - DEBUG - Requesting: http://10.0.0.22:8082/project/372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:33:26,977 - INFO - Validated that VN ctest-vn-16930009 is not found in API Server 2026-03-09 02:33:26,988 - DEBUG - VN ctest-vn-16930009 is not present in Agent 10.0.0.41 2026-03-09 02:33:26,998 - DEBUG - VN ctest-vn-16930009 is not present in Agent 10.0.0.27 2026-03-09 02:33:26,998 - INFO - Validated that VN ctest-vn-16930009 is not in any agent 2026-03-09 02:33:27,030 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16930009 info 2026-03-09 02:33:27,030 - INFO - Deleting VN ctest-vn-36974816 2026-03-09 02:33:27,176 - DEBUG - Response for deleting network () 2026-03-09 02:33:27,176 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8f054aca-54a5-4476-b152-65a18fa61938 2026-03-09 02:33:27,187 - DEBUG - Response Code: 404 2026-03-09 02:33:27,187 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-09 02:33:27,193 - DEBUG - Requesting: http://10.0.0.22:8082/domain/65872af6-2901-4194-bbe6-c1dbc9d32dc7 2026-03-09 02:33:27,215 - DEBUG - Requesting: http://10.0.0.22:8082/project/372dbc0f-faca-48b9-a2e3-de0f0085279d 2026-03-09 02:33:27,318 - INFO - Validated that VN ctest-vn-36974816 is not found in API Server 2026-03-09 02:33:27,331 - DEBUG - VN ctest-vn-36974816 is not present in Agent 10.0.0.41 2026-03-09 02:33:27,339 - DEBUG - VN ctest-vn-36974816 is not present in Agent 10.0.0.27 2026-03-09 02:33:27,339 - INFO - Validated that VN ctest-vn-36974816 is not in any agent 2026-03-09 02:33:27,371 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36974816 info 2026-03-09 02:33:28,641 - DEBUG - No XMPP flaps were noticed during the test
2026-03-09 02:33:28,641 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:42]
2026-03-09 02:33:28,641 - INFO - -------------------------------------------------------------------------------- 2026-03-09 02:33:29,389 - INFO - Deleted project: ctest-TestBasicPolicy-38534224, ID : 372dbc0f-faca-48b9-a2e3-de0f0085279d