2025-08-10 10:59:01,928 - INFO - Domain Default found not creating
2025-08-10 10:59:02,041 - INFO - Project ctest-TestBasicPolicy-01300129 not found, creating it
2025-08-10 10:59:02,505 - INFO - Created Project:ctest-TestBasicPolicy-01300129, ID : 7474e3ec-5b96-4020-a5c4-6bfd22647b9e
2025-08-10 10:59:03,859 - INFO - ================================================================================
2025-08-10 10:59:03,859 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-10 10:59:03,859 - 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-08-10 10:59:04,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-10 10:59:04,113 - INFO - Initial checks done. Running the testcase now
2025-08-10 10:59:04,113 - INFO -
2025-08-10 10:59:04,638 - DEBUG - Response for create_network : {'network': {'id': 'b2298372-3066-4557-a2b8-5d7ae7196b7f', 'name': 'ctest-vn-44429136', 'tenant_id': '7474e3ec5b964020a5c46bfd22647b9e', 'project_id': '7474e3ec5b964020a5c46bfd22647b9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-vn-44429136'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 10:59:04,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdc9c80f-70e0-4310-91d6-d7d96d67c4df', 'name': '', 'tenant_id': '7474e3ec5b964020a5c46bfd22647b9e', 'network_id': 'b2298372-3066-4557-a2b8-5d7ae7196b7f', 'ip_version': 4, 'cidr': '96.99.100.0/26', 'allocation_pools': [{'start': '96.99.100.2', 'end': '96.99.100.62'}], 'gateway_ip': '96.99.100.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.99.100.2', 'tags': [], 'project_id': '7474e3ec5b964020a5c46bfd22647b9e'}}
2025-08-10 10:59:04,815 - INFO - Created VN ctest-vn-44429136
2025-08-10 10:59:04,864 - DEBUG - VN ctest-vn-44429136 UUID is b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:05,158 - DEBUG - Response for create_network : {'network': {'id': '6e1e7349-3fce-423f-931d-db15121ff873', 'name': 'ctest-vn-76368340', 'tenant_id': '7474e3ec5b964020a5c46bfd22647b9e', 'project_id': '7474e3ec5b964020a5c46bfd22647b9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-vn-76368340'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 10:59:05,296 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e81c8b39-2c9a-4e35-aba6-6dd78af40466', 'name': '', 'tenant_id': '7474e3ec5b964020a5c46bfd22647b9e', 'network_id': '6e1e7349-3fce-423f-931d-db15121ff873', 'ip_version': 4, 'cidr': '223.131.167.128/26', 'allocation_pools': [{'start': '223.131.167.130', 'end': '223.131.167.190'}], 'gateway_ip': '223.131.167.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.131.167.130', 'tags': [], 'project_id': '7474e3ec5b964020a5c46bfd22647b9e'}}
2025-08-10 10:59:05,313 - INFO - Created VN ctest-vn-76368340
2025-08-10 10:59:05,368 - DEBUG - VN ctest-vn-76368340 UUID is 6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:05,504 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-44429136, 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-01300129:ctest-vn-76368340, 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-08-10 10:59:05,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2298372-3066-4557-a2b8-5d7ae7196b7f', 'name': 'ctest-vn-44429136', 'tenant_id': '7474e3ec5b964020a5c46bfd22647b9e', 'project_id': '7474e3ec5b964020a5c46bfd22647b9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdc9c80f-70e0-4310-91d6-d7d96d67c4df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-vn-44429136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-policy-allow-all-03081663']], 'subnet_ipam': [{'subnet_cidr': '96.99.100.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 10:59:06,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e1e7349-3fce-423f-931d-db15121ff873', 'name': 'ctest-vn-76368340', 'tenant_id': '7474e3ec5b964020a5c46bfd22647b9e', 'project_id': '7474e3ec5b964020a5c46bfd22647b9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e81c8b39-2c9a-4e35-aba6-6dd78af40466'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-vn-76368340'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-policy-allow-all-03081663']], 'subnet_ipam': [{'subnet_cidr': '223.131.167.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 10:59:06,189 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-10 10:59:06,479 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-10 10:59:06,504 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113
2025-08-10 10:59:06,515 - DEBUG - Requesting: http://10.0.0.38:8082/project/7474e3ec-5b96-4020-a5c4-6bfd22647b9e
2025-08-10 10:59:06,585 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:06,595 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:06,603 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bff8717e-b491-4ded-9f05-77d5c6cd6ad7
2025-08-10 10:59:06,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bff8717e-b491-4ded-9f05-77d5c6cd6ad7
2025-08-10 10:59:06,615 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e38b78ac-a408-4aea-93ec-2028d461f979
2025-08-10 10:59:06,620 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 10:59:06,620 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:06,628 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bff8717e-b491-4ded-9f05-77d5c6cd6ad7
2025-08-10 10:59:06,640 - INFO - Verified VN network id 11 for VN b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:06,640 - INFO - Verifications in API Server for VN ctest-vn-44429136 passed
2025-08-10 10:59:06,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:06,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bff8717e-b491-4ded-9f05-77d5c6cd6ad7
2025-08-10 10:59:06,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bff8717e-b491-4ded-9f05-77d5c6cd6ad7
2025-08-10 10:59:06,660 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e38b78ac-a408-4aea-93ec-2028d461f979
2025-08-10 10:59:06,670 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-44429136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01300129', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12837936739257828695', 'uuid-lslong': '11725224412303682431'}, 'enable': 'true', 'created': '2025-08-10T10:59:04', 'last-modified': '2025-08-10T10:59:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910224'}
2025-08-10 10:59:06,676 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 10:59:06,676 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44429136 passed
2025-08-10 10:59:06,676 - DEBUG - ====Verifying policy data for ctest-vn-44429136 in API_Server ======
2025-08-10 10:59:06,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-10 10:59:06,681 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113
2025-08-10 10:59:06,690 - DEBUG - Requesting: http://10.0.0.38:8082/project/7474e3ec-5b96-4020-a5c4-6bfd22647b9e
2025-08-10 10:59:06,754 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2298372-3066-4557-a2b8-5d7ae7196b7f
2025-08-10 10:59:06,764 - DEBUG - ==>Verifying data for policy with id: a3299e72-3cd3-4c07-b237-a5306c323d74, fqn: ['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-policy-allow-all-03081663']
2025-08-10 10:59:06,764 - INFO - VN ctest-vn-44429136 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 10:59:06,764 - DEBUG - Verifying the vn in opserver
2025-08-10 10:59:06,764 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-44429136 virtual network link through opserver 10.0.0.38
2025-08-10 10:59:06,764 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-10 10:59:07,053 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-10 10:59:07,102 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-44429136', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-44429136?flat'}
2025-08-10 10:59:07,102 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-44429136 is found in opserver
2025-08-10 10:59:07,112 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 10:59:07,117 - DEBUG - VRF ids for VN ctest-vn-44429136: {}
2025-08-10 10:59:07,117 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-10 10:59:07,122 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113
2025-08-10 10:59:07,132 - DEBUG - Requesting: http://10.0.0.38:8082/project/7474e3ec-5b96-4020-a5c4-6bfd22647b9e
2025-08-10 10:59:07,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:07,211 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:07,219 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e7dc3c89-c80e-42c4-a744-17e35cbbc2e2
2025-08-10 10:59:07,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e7dc3c89-c80e-42c4-a744-17e35cbbc2e2
2025-08-10 10:59:07,230 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a5144c67-32e3-4ae5-bb03-0716a7d40040
2025-08-10 10:59:07,236 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 10:59:07,236 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:07,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e7dc3c89-c80e-42c4-a744-17e35cbbc2e2
2025-08-10 10:59:07,255 - INFO - Verified VN network id 12 for VN 6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:07,256 - INFO - Verifications in API Server for VN ctest-vn-76368340 passed
2025-08-10 10:59:07,256 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:07,264 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e7dc3c89-c80e-42c4-a744-17e35cbbc2e2
2025-08-10 10:59:07,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e7dc3c89-c80e-42c4-a744-17e35cbbc2e2
2025-08-10 10:59:07,275 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a5144c67-32e3-4ae5-bb03-0716a7d40040
2025-08-10 10:59:07,286 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-76368340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01300129', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7934906351913681471', 'uuid-lslong': '10600869981444896883'}, 'enable': 'true', 'created': '2025-08-10T10:59:05', 'last-modified': '2025-08-10T10:59:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.297906'}
2025-08-10 10:59:07,291 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 10:59:07,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76368340 passed
2025-08-10 10:59:07,292 - DEBUG - ====Verifying policy data for ctest-vn-76368340 in API_Server ======
2025-08-10 10:59:07,292 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-10 10:59:07,296 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113
2025-08-10 10:59:07,306 - DEBUG - Requesting: http://10.0.0.38:8082/project/7474e3ec-5b96-4020-a5c4-6bfd22647b9e
2025-08-10 10:59:07,372 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6e1e7349-3fce-423f-931d-db15121ff873
2025-08-10 10:59:07,381 - DEBUG - ==>Verifying data for policy with id: a3299e72-3cd3-4c07-b237-a5306c323d74, fqn: ['default-domain', 'ctest-TestBasicPolicy-01300129', 'ctest-policy-allow-all-03081663']
2025-08-10 10:59:07,381 - INFO - VN ctest-vn-76368340 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 10:59:07,381 - DEBUG - Verifying the vn in opserver
2025-08-10 10:59:07,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-76368340 virtual network link through opserver 10.0.0.38
2025-08-10 10:59:07,381 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-10 10:59:07,389 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-76368340', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-76368340?flat'}
2025-08-10 10:59:07,389 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01300129:ctest-vn-76368340 is found in opserver
2025-08-10 10:59:07,399 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 10:59:07,403 - DEBUG - VRF ids for VN ctest-vn-76368340: {}
2025-08-10 10:59:07,451 - DEBUG - Services list from nova: [