2025-01-04 19:47:46,703 - INFO - Domain Default found not creating
2025-01-04 19:47:46,865 - INFO - Project ctest-TestBasicPolicy-44534093 not found, creating it
2025-01-04 19:47:47,350 - INFO - Created Project:ctest-TestBasicPolicy-44534093, ID : 3f6c1871-f9d7-44a8-9200-abc5e442abb2
2025-01-04 19:47:48,881 - INFO - ================================================================================
2025-01-04 19:47:48,881 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-04 19:47:48,881 - 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-04 19:47:49,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2025-01-04 19:47:49,145 - INFO - Initial checks done. Running the testcase now
2025-01-04 19:47:49,146 - INFO -
2025-01-04 19:47:49,725 - DEBUG - Response for create_network : {'network': {'id': '6214b41c-0186-4f71-a725-ed422b27274b', 'name': 'ctest-vn-27806765', 'tenant_id': '3f6c1871f9d744a89200abc5e442abb2', 'project_id': '3f6c1871f9d744a89200abc5e442abb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-vn-27806765'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 19:47:49,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '986481dc-74ec-4800-a2e8-e00cb110e19a', 'name': '', 'tenant_id': '3f6c1871f9d744a89200abc5e442abb2', 'network_id': '6214b41c-0186-4f71-a725-ed422b27274b', 'ip_version': 4, 'cidr': '192.225.195.128/26', 'allocation_pools': [{'start': '192.225.195.130', 'end': '192.225.195.190'}], 'gateway_ip': '192.225.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.225.195.130', 'tags': [], 'project_id': '3f6c1871f9d744a89200abc5e442abb2'}}
2025-01-04 19:47:49,976 - INFO - Created VN ctest-vn-27806765
2025-01-04 19:47:50,030 - DEBUG - VN ctest-vn-27806765 UUID is 6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:50,404 - DEBUG - Response for create_network : {'network': {'id': '834d2c4e-744c-4553-a7f9-d44e5e459e04', 'name': 'ctest-vn-79253858', 'tenant_id': '3f6c1871f9d744a89200abc5e442abb2', 'project_id': '3f6c1871f9d744a89200abc5e442abb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-vn-79253858'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 19:47:50,571 - DEBUG - Response for create_subnet : {'subnet': {'id': '690a131b-5207-448b-8f84-194b38bd7436', 'name': '', 'tenant_id': '3f6c1871f9d744a89200abc5e442abb2', 'network_id': '834d2c4e-744c-4553-a7f9-d44e5e459e04', 'ip_version': 4, 'cidr': '119.52.111.128/26', 'allocation_pools': [{'start': '119.52.111.130', 'end': '119.52.111.190'}], 'gateway_ip': '119.52.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.52.111.130', 'tags': [], 'project_id': '3f6c1871f9d744a89200abc5e442abb2'}}
2025-01-04 19:47:50,590 - INFO - Created VN ctest-vn-79253858
2025-01-04 19:47:50,643 - DEBUG - VN ctest-vn-79253858 UUID is 834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:50,776 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-27806765, 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-44534093:ctest-vn-79253858, 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-04 19:47:51,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6214b41c-0186-4f71-a725-ed422b27274b', 'name': 'ctest-vn-27806765', 'tenant_id': '3f6c1871f9d744a89200abc5e442abb2', 'project_id': '3f6c1871f9d744a89200abc5e442abb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['986481dc-74ec-4800-a2e8-e00cb110e19a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-vn-27806765'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-policy-allow-all-80859839']], 'subnet_ipam': [{'subnet_cidr': '192.225.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 19:47:51,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '834d2c4e-744c-4553-a7f9-d44e5e459e04', 'name': 'ctest-vn-79253858', 'tenant_id': '3f6c1871f9d744a89200abc5e442abb2', 'project_id': '3f6c1871f9d744a89200abc5e442abb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['690a131b-5207-448b-8f84-194b38bd7436'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-vn-79253858'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-policy-allow-all-80859839']], 'subnet_ipam': [{'subnet_cidr': '119.52.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 19:47:51,538 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-04 19:47:51,853 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-04 19:47:51,889 - DEBUG - Requesting: http://10.0.0.41:8082/domain/40e07d30-4eeb-4e78-8b3d-d14a4c6bcab3
2025-01-04 19:47:51,907 - DEBUG - Requesting: http://10.0.0.41:8082/project/3f6c1871-f9d7-44a8-9200-abc5e442abb2
2025-01-04 19:47:51,986 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:51,997 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:52,007 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/969da4e4-a91d-4707-a162-5212ba74a670
2025-01-04 19:47:52,015 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/969da4e4-a91d-4707-a162-5212ba74a670
2025-01-04 19:47:52,023 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/bce8f10b-444e-47c3-82d1-351efefa0786
2025-01-04 19:47:52,030 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 19:47:52,030 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:52,041 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/969da4e4-a91d-4707-a162-5212ba74a670
2025-01-04 19:47:52,057 - INFO - Verified VN network id 8 for VN 6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:52,057 - INFO - Verifications in API Server for VN ctest-vn-27806765 passed
2025-01-04 19:47:52,057 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:52,069 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/969da4e4-a91d-4707-a162-5212ba74a670
2025-01-04 19:47:52,079 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/969da4e4-a91d-4707-a162-5212ba74a670
2025-01-04 19:47:52,088 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/bce8f10b-444e-47c3-82d1-351efefa0786
2025-01-04 19:47:52,104 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-27806765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44534093', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7067471747628814193', 'uuid-lslong': '12044293646919870283'}, 'enable': 'true', 'created': '2025-01-04T19:47:49', 'last-modified': '2025-01-04T19:47:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033640'}
2025-01-04 19:47:52,115 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 19:47:52,115 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27806765 passed
2025-01-04 19:47:52,115 - DEBUG - ====Verifying policy data for ctest-vn-27806765 in API_Server ======
2025-01-04 19:47:52,115 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-04 19:47:52,122 - DEBUG - Requesting: http://10.0.0.41:8082/domain/40e07d30-4eeb-4e78-8b3d-d14a4c6bcab3
2025-01-04 19:47:52,134 - DEBUG - Requesting: http://10.0.0.41:8082/project/3f6c1871-f9d7-44a8-9200-abc5e442abb2
2025-01-04 19:47:52,213 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6214b41c-0186-4f71-a725-ed422b27274b
2025-01-04 19:47:52,224 - DEBUG - ==>Verifying data for policy with id: 9adc7c68-0473-4982-87c3-216945046e92, fqn: ['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-policy-allow-all-80859839']
2025-01-04 19:47:52,224 - INFO - VN ctest-vn-27806765 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 19:47:52,224 - DEBUG - Verifying the vn in opserver
2025-01-04 19:47:52,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-27806765 virtual network link through opserver 10.0.0.41
2025-01-04 19:47:52,224 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-04 19:47:52,522 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-04 19:47:52,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-27806765', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-27806765?flat'}
2025-01-04 19:47:52,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-27806765 is found in opserver
2025-01-04 19:47:52,598 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 19:47:52,605 - DEBUG - VRF ids for VN ctest-vn-27806765: {}
2025-01-04 19:47:52,605 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-04 19:47:52,611 - DEBUG - Requesting: http://10.0.0.41:8082/domain/40e07d30-4eeb-4e78-8b3d-d14a4c6bcab3
2025-01-04 19:47:52,628 - DEBUG - Requesting: http://10.0.0.41:8082/project/3f6c1871-f9d7-44a8-9200-abc5e442abb2
2025-01-04 19:47:52,713 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:52,728 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:52,741 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9545b198-e570-4846-9c20-c4afadc9a28d
2025-01-04 19:47:52,750 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9545b198-e570-4846-9c20-c4afadc9a28d
2025-01-04 19:47:52,759 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/97a89a1e-1e64-46eb-99b8-efe4a74c57e8
2025-01-04 19:47:52,769 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 19:47:52,769 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:52,783 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9545b198-e570-4846-9c20-c4afadc9a28d
2025-01-04 19:47:52,806 - INFO - Verified VN network id 9 for VN 834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:52,807 - INFO - Verifications in API Server for VN ctest-vn-79253858 passed
2025-01-04 19:47:52,807 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:52,821 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9545b198-e570-4846-9c20-c4afadc9a28d
2025-01-04 19:47:52,830 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9545b198-e570-4846-9c20-c4afadc9a28d
2025-01-04 19:47:52,839 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/97a89a1e-1e64-46eb-99b8-efe4a74c57e8
2025-01-04 19:47:52,857 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-79253858', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44534093', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9461267107645506899', 'uuid-lslong': '12103938906589076996'}, 'enable': 'true', 'created': '2025-01-04T19:47:50', 'last-modified': '2025-01-04T19:47:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543852'}
2025-01-04 19:47:52,865 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 19:47:52,866 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79253858 passed
2025-01-04 19:47:52,866 - DEBUG - ====Verifying policy data for ctest-vn-79253858 in API_Server ======
2025-01-04 19:47:52,866 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-04 19:47:52,873 - DEBUG - Requesting: http://10.0.0.41:8082/domain/40e07d30-4eeb-4e78-8b3d-d14a4c6bcab3
2025-01-04 19:47:52,887 - DEBUG - Requesting: http://10.0.0.41:8082/project/3f6c1871-f9d7-44a8-9200-abc5e442abb2
2025-01-04 19:47:52,970 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/834d2c4e-744c-4553-a7f9-d44e5e459e04
2025-01-04 19:47:52,982 - DEBUG - ==>Verifying data for policy with id: 9adc7c68-0473-4982-87c3-216945046e92, fqn: ['default-domain', 'ctest-TestBasicPolicy-44534093', 'ctest-policy-allow-all-80859839']
2025-01-04 19:47:52,982 - INFO - VN ctest-vn-79253858 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 19:47:52,982 - DEBUG - Verifying the vn in opserver
2025-01-04 19:47:52,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-79253858 virtual network link through opserver 10.0.0.41
2025-01-04 19:47:52,982 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-04 19:47:52,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-79253858', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-79253858?flat'}
2025-01-04 19:47:52,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44534093:ctest-vn-79253858 is found in opserver
2025-01-04 19:47:53,006 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 19:47:53,013 - DEBUG - VRF ids for VN ctest-vn-79253858: {}
2025-01-04 19:47:53,080 - DEBUG - Services list from nova: [