2025-05-04 14:44:06,191 - INFO - Domain Default found not creating
2025-05-04 14:44:06,316 - INFO - Project ctest-TestBasicPolicy-30662367 not found, creating it
2025-05-04 14:44:06,753 - INFO - Created Project:ctest-TestBasicPolicy-30662367, ID : d2211693-47bc-4ac9-a347-58dda74e545a
2025-05-04 14:44:08,093 - INFO - ================================================================================
2025-05-04 14:44:08,093 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-04 14:44:08,093 - 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-05-04 14:44:08,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-05-04 14:44:08,347 - INFO - Initial checks done. Running the testcase now
2025-05-04 14:44:08,347 - INFO -
2025-05-04 14:44:08,867 - DEBUG - Response for create_network : {'network': {'id': '5fcce145-7420-4f77-93ce-c68a8bf6f723', 'name': 'ctest-vn-81135555', 'tenant_id': 'd221169347bc4ac9a34758dda74e545a', 'project_id': 'd221169347bc4ac9a34758dda74e545a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-vn-81135555'], 'port_security_enabled': True, 'description': ''}}
2025-05-04 14:44:09,091 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b7ae8af-b6b8-43a4-9634-cf7728adf2a6', 'name': '', 'tenant_id': 'd221169347bc4ac9a34758dda74e545a', 'network_id': '5fcce145-7420-4f77-93ce-c68a8bf6f723', 'ip_version': 4, 'cidr': '69.87.45.0/26', 'allocation_pools': [{'start': '69.87.45.2', 'end': '69.87.45.62'}], 'gateway_ip': '69.87.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.87.45.2', 'tags': [], 'project_id': 'd221169347bc4ac9a34758dda74e545a'}}
2025-05-04 14:44:09,108 - INFO - Created VN ctest-vn-81135555
2025-05-04 14:44:09,161 - DEBUG - VN ctest-vn-81135555 UUID is 5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:09,459 - DEBUG - Response for create_network : {'network': {'id': '0281dff6-282c-491e-8bc4-a614ab1ebb56', 'name': 'ctest-vn-23356767', 'tenant_id': 'd221169347bc4ac9a34758dda74e545a', 'project_id': 'd221169347bc4ac9a34758dda74e545a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-vn-23356767'], 'port_security_enabled': True, 'description': ''}}
2025-05-04 14:44:09,628 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16dbc71-ecc5-4191-8715-960f243db6a7', 'name': '', 'tenant_id': 'd221169347bc4ac9a34758dda74e545a', 'network_id': '0281dff6-282c-491e-8bc4-a614ab1ebb56', 'ip_version': 4, 'cidr': '146.19.250.0/26', 'allocation_pools': [{'start': '146.19.250.2', 'end': '146.19.250.62'}], 'gateway_ip': '146.19.250.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.19.250.2', 'tags': [], 'project_id': 'd221169347bc4ac9a34758dda74e545a'}}
2025-05-04 14:44:09,646 - INFO - Created VN ctest-vn-23356767
2025-05-04 14:44:09,701 - DEBUG - VN ctest-vn-23356767 UUID is 0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:09,845 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-81135555, 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-30662367:ctest-vn-23356767, 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-05-04 14:44:10,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fcce145-7420-4f77-93ce-c68a8bf6f723', 'name': 'ctest-vn-81135555', 'tenant_id': 'd221169347bc4ac9a34758dda74e545a', 'project_id': 'd221169347bc4ac9a34758dda74e545a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b7ae8af-b6b8-43a4-9634-cf7728adf2a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-vn-81135555'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-policy-allow-all-87846539']], 'subnet_ipam': [{'subnet_cidr': '69.87.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-04 14:44:10,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0281dff6-282c-491e-8bc4-a614ab1ebb56', 'name': 'ctest-vn-23356767', 'tenant_id': 'd221169347bc4ac9a34758dda74e545a', 'project_id': 'd221169347bc4ac9a34758dda74e545a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e16dbc71-ecc5-4191-8715-960f243db6a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-vn-23356767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-policy-allow-all-87846539']], 'subnet_ipam': [{'subnet_cidr': '146.19.250.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-04 14:44:10,537 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-04 14:44:10,826 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-04 14:44:10,854 - DEBUG - Requesting: http://10.0.0.57:8082/domain/65233a82-c004-4cec-a2b6-3b29f6a3b3d0
2025-05-04 14:44:10,871 - DEBUG - Requesting: http://10.0.0.57:8082/project/d2211693-47bc-4ac9-a347-58dda74e545a
2025-05-04 14:44:10,949 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:10,959 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:10,968 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8c8992e0-6617-4704-93a1-87d8e32f5b83
2025-05-04 14:44:10,974 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8c8992e0-6617-4704-93a1-87d8e32f5b83
2025-05-04 14:44:10,981 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fd768f66-ac7e-46c7-b38a-79af75ec9922
2025-05-04 14:44:10,988 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-04 14:44:10,988 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:10,996 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8c8992e0-6617-4704-93a1-87d8e32f5b83
2025-05-04 14:44:11,008 - INFO - Verified VN network id 9 for VN 5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:11,008 - INFO - Verifications in API Server for VN ctest-vn-81135555 passed
2025-05-04 14:44:11,008 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:11,017 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8c8992e0-6617-4704-93a1-87d8e32f5b83
2025-05-04 14:44:11,023 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/8c8992e0-6617-4704-93a1-87d8e32f5b83
2025-05-04 14:44:11,029 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fd768f66-ac7e-46c7-b38a-79af75ec9922
2025-05-04 14:44:11,040 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-81135555', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30662367', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6903140017269395319', 'uuid-lslong': '10650668467133806371'}, 'enable': 'true', 'created': '2025-05-04T14:44:08', 'last-modified': '2025-05-04T14:44:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931761'}
2025-05-04 14:44:11,046 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-04 14:44:11,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81135555 passed
2025-05-04 14:44:11,046 - DEBUG - ====Verifying policy data for ctest-vn-81135555 in API_Server ======
2025-05-04 14:44:11,047 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-04 14:44:11,052 - DEBUG - Requesting: http://10.0.0.57:8082/domain/65233a82-c004-4cec-a2b6-3b29f6a3b3d0
2025-05-04 14:44:11,062 - DEBUG - Requesting: http://10.0.0.57:8082/project/d2211693-47bc-4ac9-a347-58dda74e545a
2025-05-04 14:44:11,131 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/5fcce145-7420-4f77-93ce-c68a8bf6f723
2025-05-04 14:44:11,141 - DEBUG - ==>Verifying data for policy with id: bdb13924-057b-4c4c-917c-6cb03d871022, fqn: ['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-policy-allow-all-87846539']
2025-05-04 14:44:11,141 - INFO - VN ctest-vn-81135555 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-04 14:44:11,141 - DEBUG - Verifying the vn in opserver
2025-05-04 14:44:11,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-81135555 virtual network link through opserver 10.0.0.57
2025-05-04 14:44:11,141 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-04 14:44:11,429 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-04 14:44:11,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-81135555', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-81135555?flat'}
2025-05-04 14:44:11,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-81135555 is found in opserver
2025-05-04 14:44:11,488 - DEBUG - Do not have enough data to verify VN in agent
2025-05-04 14:44:11,492 - DEBUG - VRF ids for VN ctest-vn-81135555: {}
2025-05-04 14:44:11,492 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-04 14:44:11,498 - DEBUG - Requesting: http://10.0.0.57:8082/domain/65233a82-c004-4cec-a2b6-3b29f6a3b3d0
2025-05-04 14:44:11,508 - DEBUG - Requesting: http://10.0.0.57:8082/project/d2211693-47bc-4ac9-a347-58dda74e545a
2025-05-04 14:44:11,579 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:11,591 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:11,600 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1be72aff-abc8-456b-9b75-5a49c6ebac01
2025-05-04 14:44:11,607 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1be72aff-abc8-456b-9b75-5a49c6ebac01
2025-05-04 14:44:11,613 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/95d81bb5-ea9a-441e-9a5f-d215ec723ff0
2025-05-04 14:44:11,619 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-04 14:44:11,619 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:11,627 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1be72aff-abc8-456b-9b75-5a49c6ebac01
2025-05-04 14:44:11,640 - INFO - Verified VN network id 10 for VN 0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:11,640 - INFO - Verifications in API Server for VN ctest-vn-23356767 passed
2025-05-04 14:44:11,640 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:11,649 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1be72aff-abc8-456b-9b75-5a49c6ebac01
2025-05-04 14:44:11,655 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1be72aff-abc8-456b-9b75-5a49c6ebac01
2025-05-04 14:44:11,661 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/95d81bb5-ea9a-441e-9a5f-d215ec723ff0
2025-05-04 14:44:11,673 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-23356767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30662367', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '180671708400470302', 'uuid-lslong': '10071357274407746390'}, 'enable': 'true', 'created': '2025-05-04T14:44:09', 'last-modified': '2025-05-04T14:44:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.337027'}
2025-05-04 14:44:11,678 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-04 14:44:11,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23356767 passed
2025-05-04 14:44:11,678 - DEBUG - ====Verifying policy data for ctest-vn-23356767 in API_Server ======
2025-05-04 14:44:11,678 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-04 14:44:11,683 - DEBUG - Requesting: http://10.0.0.57:8082/domain/65233a82-c004-4cec-a2b6-3b29f6a3b3d0
2025-05-04 14:44:11,693 - DEBUG - Requesting: http://10.0.0.57:8082/project/d2211693-47bc-4ac9-a347-58dda74e545a
2025-05-04 14:44:11,767 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/0281dff6-282c-491e-8bc4-a614ab1ebb56
2025-05-04 14:44:11,776 - DEBUG - ==>Verifying data for policy with id: bdb13924-057b-4c4c-917c-6cb03d871022, fqn: ['default-domain', 'ctest-TestBasicPolicy-30662367', 'ctest-policy-allow-all-87846539']
2025-05-04 14:44:11,776 - INFO - VN ctest-vn-23356767 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-04 14:44:11,776 - DEBUG - Verifying the vn in opserver
2025-05-04 14:44:11,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-23356767 virtual network link through opserver 10.0.0.57
2025-05-04 14:44:11,776 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-04 14:44:11,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-23356767', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-23356767?flat'}
2025-05-04 14:44:11,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30662367:ctest-vn-23356767 is found in opserver
2025-05-04 14:44:11,796 - DEBUG - Do not have enough data to verify VN in agent
2025-05-04 14:44:11,800 - DEBUG - VRF ids for VN ctest-vn-23356767: {}
2025-05-04 14:44:11,850 - DEBUG - Services list from nova: [