2025-06-30 15:07:31,971 - INFO - Domain Default found not creating
2025-06-30 15:07:32,106 - INFO - Project ctest-TestBasicPolicy-68641790 not found, creating it
2025-06-30 15:07:32,662 - INFO - Created Project:ctest-TestBasicPolicy-68641790, ID : b2e943b2-1e7c-4bd8-8e68-38cb0f87bd25
2025-06-30 15:07:34,106 - INFO - ================================================================================
2025-06-30 15:07:34,106 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 15:07:34,106 - 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-06-30 15:07:34,360 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with
2025-06-30 15:07:34,360 - INFO - Initial checks done. Running the testcase now
2025-06-30 15:07:34,360 - INFO -
2025-06-30 15:07:34,931 - DEBUG - Response for create_network : {'network': {'id': '61b20dbe-6759-4a91-bc92-d30c91d8fbf5', 'name': 'ctest-vn-90568477', 'tenant_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'project_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-vn-90568477'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:07:35,109 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff85eb81-4149-4229-bf32-73ef3ebdc717', 'name': '', 'tenant_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'network_id': '61b20dbe-6759-4a91-bc92-d30c91d8fbf5', 'ip_version': 4, 'cidr': '199.55.241.128/26', 'allocation_pools': [{'start': '199.55.241.130', 'end': '199.55.241.190'}], 'gateway_ip': '199.55.241.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.55.241.130', 'tags': [], 'project_id': 'b2e943b21e7c4bd88e6838cb0f87bd25'}}
2025-06-30 15:07:35,129 - INFO - Created VN ctest-vn-90568477
2025-06-30 15:07:35,186 - DEBUG - VN ctest-vn-90568477 UUID is 61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:35,532 - DEBUG - Response for create_network : {'network': {'id': 'af926e9b-a19b-4cd2-b292-9e16aaff54ac', 'name': 'ctest-vn-36560898', 'tenant_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'project_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-vn-36560898'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:07:35,720 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efb84ac0-008a-4853-9b88-373ef8a96d61', 'name': '', 'tenant_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'network_id': 'af926e9b-a19b-4cd2-b292-9e16aaff54ac', 'ip_version': 4, 'cidr': '183.9.12.128/26', 'allocation_pools': [{'start': '183.9.12.130', 'end': '183.9.12.190'}], 'gateway_ip': '183.9.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.9.12.130', 'tags': [], 'project_id': 'b2e943b21e7c4bd88e6838cb0f87bd25'}}
2025-06-30 15:07:35,736 - INFO - Created VN ctest-vn-36560898
2025-06-30 15:07:35,790 - DEBUG - VN ctest-vn-36560898 UUID is af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:35,904 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-90568477, 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-68641790:ctest-vn-36560898, 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-06-30 15:07:36,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61b20dbe-6759-4a91-bc92-d30c91d8fbf5', 'name': 'ctest-vn-90568477', 'tenant_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'project_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff85eb81-4149-4229-bf32-73ef3ebdc717'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-vn-90568477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-policy-allow-all-12260020']], 'subnet_ipam': [{'subnet_cidr': '199.55.241.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:07:36,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af926e9b-a19b-4cd2-b292-9e16aaff54ac', 'name': 'ctest-vn-36560898', 'tenant_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'project_id': 'b2e943b21e7c4bd88e6838cb0f87bd25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['efb84ac0-008a-4853-9b88-373ef8a96d61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-vn-36560898'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-policy-allow-all-12260020']], 'subnet_ipam': [{'subnet_cidr': '183.9.12.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:07:36,598 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 15:07:36,892 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 15:07:36,921 - DEBUG - Requesting: http://10.0.0.49:8082/domain/00597c6a-3493-4e48-a492-b5e18adf58ee
2025-06-30 15:07:36,933 - DEBUG - Requesting: http://10.0.0.49:8082/project/b2e943b2-1e7c-4bd8-8e68-38cb0f87bd25
2025-06-30 15:07:37,011 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:37,024 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:37,034 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/538abada-c061-4bb4-a6aa-4872913232e6
2025-06-30 15:07:37,042 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/538abada-c061-4bb4-a6aa-4872913232e6
2025-06-30 15:07:37,049 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/82caede3-1494-444f-a5dc-243c7a1dd1f6
2025-06-30 15:07:37,056 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 15:07:37,056 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:37,066 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/538abada-c061-4bb4-a6aa-4872913232e6
2025-06-30 15:07:37,080 - INFO - Verified VN network id 8 for VN 61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:37,080 - INFO - Verifications in API Server for VN ctest-vn-90568477 passed
2025-06-30 15:07:37,080 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:37,090 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/538abada-c061-4bb4-a6aa-4872913232e6
2025-06-30 15:07:37,097 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/538abada-c061-4bb4-a6aa-4872913232e6
2025-06-30 15:07:37,104 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/82caede3-1494-444f-a5dc-243c7a1dd1f6
2025-06-30 15:07:37,117 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-90568477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68641790', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7039704278962358929', 'uuid-lslong': '13588155076670192629'}, 'enable': 'true', 'created': '2025-06-30T15:07:34', 'last-modified': '2025-06-30T15:07:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942277'}
2025-06-30 15:07:37,123 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 15:07:37,123 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90568477 passed
2025-06-30 15:07:37,123 - DEBUG - ====Verifying policy data for ctest-vn-90568477 in API_Server ======
2025-06-30 15:07:37,123 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 15:07:37,129 - DEBUG - Requesting: http://10.0.0.49:8082/domain/00597c6a-3493-4e48-a492-b5e18adf58ee
2025-06-30 15:07:37,140 - DEBUG - Requesting: http://10.0.0.49:8082/project/b2e943b2-1e7c-4bd8-8e68-38cb0f87bd25
2025-06-30 15:07:37,217 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/61b20dbe-6759-4a91-bc92-d30c91d8fbf5
2025-06-30 15:07:37,228 - DEBUG - ==>Verifying data for policy with id: a3bfe788-7d91-421f-b47e-b1822cb43e26, fqn: ['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-policy-allow-all-12260020']
2025-06-30 15:07:37,228 - INFO - VN ctest-vn-90568477 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 15:07:37,228 - DEBUG - Verifying the vn in opserver
2025-06-30 15:07:37,228 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-90568477 virtual network link through opserver 10.0.0.49
2025-06-30 15:07:37,229 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-30 15:07:37,523 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-30 15:07:37,591 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-90568477', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-90568477?flat'}
2025-06-30 15:07:37,591 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-90568477 is found in opserver
2025-06-30 15:07:37,603 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 15:07:37,608 - DEBUG - VRF ids for VN ctest-vn-90568477: {}
2025-06-30 15:07:37,608 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 15:07:37,614 - DEBUG - Requesting: http://10.0.0.49:8082/domain/00597c6a-3493-4e48-a492-b5e18adf58ee
2025-06-30 15:07:37,627 - DEBUG - Requesting: http://10.0.0.49:8082/project/b2e943b2-1e7c-4bd8-8e68-38cb0f87bd25
2025-06-30 15:07:37,697 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:37,710 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:37,721 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c370f384-3305-45e0-b67e-48b24abae205
2025-06-30 15:07:37,729 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c370f384-3305-45e0-b67e-48b24abae205
2025-06-30 15:07:37,737 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/be5572a8-d50c-49c4-81df-ccb5a3b0431c
2025-06-30 15:07:37,744 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 15:07:37,744 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:37,756 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c370f384-3305-45e0-b67e-48b24abae205
2025-06-30 15:07:37,771 - INFO - Verified VN network id 9 for VN af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:37,772 - INFO - Verifications in API Server for VN ctest-vn-36560898 passed
2025-06-30 15:07:37,772 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:37,782 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c370f384-3305-45e0-b67e-48b24abae205
2025-06-30 15:07:37,790 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/c370f384-3305-45e0-b67e-48b24abae205
2025-06-30 15:07:37,797 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/be5572a8-d50c-49c4-81df-ccb5a3b0431c
2025-06-30 15:07:37,810 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-36560898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68641790', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12651295917947440338', 'uuid-lslong': '12867520905546257580'}, 'enable': 'true', 'created': '2025-06-30T15:07:35', 'last-modified': '2025-06-30T15:07:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398578'}
2025-06-30 15:07:37,816 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 15:07:37,817 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36560898 passed
2025-06-30 15:07:37,817 - DEBUG - ====Verifying policy data for ctest-vn-36560898 in API_Server ======
2025-06-30 15:07:37,817 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 15:07:37,823 - DEBUG - Requesting: http://10.0.0.49:8082/domain/00597c6a-3493-4e48-a492-b5e18adf58ee
2025-06-30 15:07:37,835 - DEBUG - Requesting: http://10.0.0.49:8082/project/b2e943b2-1e7c-4bd8-8e68-38cb0f87bd25
2025-06-30 15:07:37,915 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/af926e9b-a19b-4cd2-b292-9e16aaff54ac
2025-06-30 15:07:37,927 - DEBUG - ==>Verifying data for policy with id: a3bfe788-7d91-421f-b47e-b1822cb43e26, fqn: ['default-domain', 'ctest-TestBasicPolicy-68641790', 'ctest-policy-allow-all-12260020']
2025-06-30 15:07:37,927 - INFO - VN ctest-vn-36560898 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 15:07:37,927 - DEBUG - Verifying the vn in opserver
2025-06-30 15:07:37,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-36560898 virtual network link through opserver 10.0.0.49
2025-06-30 15:07:37,927 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-30 15:07:37,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-36560898', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-36560898?flat'}
2025-06-30 15:07:37,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68641790:ctest-vn-36560898 is found in opserver
2025-06-30 15:07:37,955 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 15:07:37,963 - DEBUG - VRF ids for VN ctest-vn-36560898: {}
2025-06-30 15:07:38,023 - DEBUG - Services list from nova: [