2025-06-10 07:00:14,643 - INFO - Domain Default found not creating
2025-06-10 07:00:14,833 - INFO - Project ctest-TestBasicPolicy-96890402 not found, creating it
2025-06-10 07:00:15,411 - INFO - Created Project:ctest-TestBasicPolicy-96890402, ID : 73391bc8-d1bd-4cb6-b759-633de6595f15
2025-06-10 07:00:17,074 - INFO - ================================================================================
2025-06-10 07:00:17,075 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 07:00:17,075 - 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-10 07:00:17,336 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-10 07:00:17,336 - INFO - Initial checks done. Running the testcase now
2025-06-10 07:00:17,336 - INFO -
2025-06-10 07:00:17,961 - DEBUG - Response for create_network : {'network': {'id': '5a2ed6a5-66cc-41a9-b142-797be542b183', 'name': 'ctest-vn-88948704', 'tenant_id': '73391bc8d1bd4cb6b759633de6595f15', 'project_id': '73391bc8d1bd4cb6b759633de6595f15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-vn-88948704'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 07:00:18,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '7367e6b6-e1de-435c-a573-5aa91c97bd74', 'name': '', 'tenant_id': '73391bc8d1bd4cb6b759633de6595f15', 'network_id': '5a2ed6a5-66cc-41a9-b142-797be542b183', 'ip_version': 4, 'cidr': '131.115.253.0/26', 'allocation_pools': [{'start': '131.115.253.2', 'end': '131.115.253.62'}], 'gateway_ip': '131.115.253.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.115.253.2', 'tags': [], 'project_id': '73391bc8d1bd4cb6b759633de6595f15'}}
2025-06-10 07:00:18,171 - INFO - Created VN ctest-vn-88948704
2025-06-10 07:00:18,229 - DEBUG - VN ctest-vn-88948704 UUID is 5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:18,549 - DEBUG - Response for create_network : {'network': {'id': 'abcb2cae-1492-4c4e-abdb-d0d7d88244ea', 'name': 'ctest-vn-92729951', 'tenant_id': '73391bc8d1bd4cb6b759633de6595f15', 'project_id': '73391bc8d1bd4cb6b759633de6595f15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-vn-92729951'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 07:00:18,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '82ce7214-c912-48e4-92dd-974b548d91c4', 'name': '', 'tenant_id': '73391bc8d1bd4cb6b759633de6595f15', 'network_id': 'abcb2cae-1492-4c4e-abdb-d0d7d88244ea', 'ip_version': 4, 'cidr': '70.66.19.0/26', 'allocation_pools': [{'start': '70.66.19.2', 'end': '70.66.19.62'}], 'gateway_ip': '70.66.19.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.66.19.2', 'tags': [], 'project_id': '73391bc8d1bd4cb6b759633de6595f15'}}
2025-06-10 07:00:18,766 - INFO - Created VN ctest-vn-92729951
2025-06-10 07:00:18,821 - DEBUG - VN ctest-vn-92729951 UUID is abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:18,949 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-88948704, 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-96890402:ctest-vn-92729951, 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-10 07:00:19,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a2ed6a5-66cc-41a9-b142-797be542b183', 'name': 'ctest-vn-88948704', 'tenant_id': '73391bc8d1bd4cb6b759633de6595f15', 'project_id': '73391bc8d1bd4cb6b759633de6595f15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7367e6b6-e1de-435c-a573-5aa91c97bd74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-vn-88948704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-policy-allow-all-78638129']], 'subnet_ipam': [{'subnet_cidr': '131.115.253.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 07:00:19,509 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abcb2cae-1492-4c4e-abdb-d0d7d88244ea', 'name': 'ctest-vn-92729951', 'tenant_id': '73391bc8d1bd4cb6b759633de6595f15', 'project_id': '73391bc8d1bd4cb6b759633de6595f15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82ce7214-c912-48e4-92dd-974b548d91c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-vn-92729951'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-policy-allow-all-78638129']], 'subnet_ipam': [{'subnet_cidr': '70.66.19.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 07:00:19,689 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 07:00:20,027 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 07:00:20,059 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fc093bcb-6dbc-4c2a-bd5b-db62d0d2ae49
2025-06-10 07:00:20,076 - DEBUG - Requesting: http://10.0.0.65:8082/project/73391bc8-d1bd-4cb6-b759-633de6595f15
2025-06-10 07:00:20,151 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:20,166 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:20,180 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/284d0a7e-982f-426e-a814-b55285f4a9dd
2025-06-10 07:00:20,189 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/284d0a7e-982f-426e-a814-b55285f4a9dd
2025-06-10 07:00:20,199 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/71f338e9-54a8-474b-a8b5-1ec2508f7d16
2025-06-10 07:00:20,208 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 07:00:20,208 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:20,220 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/284d0a7e-982f-426e-a814-b55285f4a9dd
2025-06-10 07:00:20,239 - INFO - Verified VN network id 8 for VN 5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:20,240 - INFO - Verifications in API Server for VN ctest-vn-88948704 passed
2025-06-10 07:00:20,240 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:20,253 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/284d0a7e-982f-426e-a814-b55285f4a9dd
2025-06-10 07:00:20,264 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/284d0a7e-982f-426e-a814-b55285f4a9dd
2025-06-10 07:00:20,272 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/71f338e9-54a8-474b-a8b5-1ec2508f7d16
2025-06-10 07:00:20,287 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-88948704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96890402', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6498367318224814505', 'uuid-lslong': '12772905066210439555'}, 'enable': 'true', 'created': '2025-06-10T07:00:17', 'last-modified': '2025-06-10T07:00:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048720'}
2025-06-10 07:00:20,295 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 07:00:20,295 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88948704 passed
2025-06-10 07:00:20,295 - DEBUG - ====Verifying policy data for ctest-vn-88948704 in API_Server ======
2025-06-10 07:00:20,295 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 07:00:20,302 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fc093bcb-6dbc-4c2a-bd5b-db62d0d2ae49
2025-06-10 07:00:20,320 - DEBUG - Requesting: http://10.0.0.65:8082/project/73391bc8-d1bd-4cb6-b759-633de6595f15
2025-06-10 07:00:20,400 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5a2ed6a5-66cc-41a9-b142-797be542b183
2025-06-10 07:00:20,416 - DEBUG - ==>Verifying data for policy with id: 583435e9-4e9c-4f56-924b-d4f880987fad, fqn: ['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-policy-allow-all-78638129']
2025-06-10 07:00:20,416 - INFO - VN ctest-vn-88948704 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 07:00:20,416 - DEBUG - Verifying the vn in opserver
2025-06-10 07:00:20,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-88948704 virtual network link through opserver 10.0.0.65
2025-06-10 07:00:20,416 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 07:00:20,759 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 07:00:20,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-88948704', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-88948704?flat'}
2025-06-10 07:00:20,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-88948704 is found in opserver
2025-06-10 07:00:20,836 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 07:00:20,842 - DEBUG - VRF ids for VN ctest-vn-88948704: {}
2025-06-10 07:00:20,842 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 07:00:20,849 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fc093bcb-6dbc-4c2a-bd5b-db62d0d2ae49
2025-06-10 07:00:20,867 - DEBUG - Requesting: http://10.0.0.65:8082/project/73391bc8-d1bd-4cb6-b759-633de6595f15
2025-06-10 07:00:20,951 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:20,967 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:20,979 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2b69983c-019d-4781-a89a-14316669e55a
2025-06-10 07:00:20,989 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2b69983c-019d-4781-a89a-14316669e55a
2025-06-10 07:00:20,997 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1728d076-c3fc-4e01-bb08-ec53f3f48647
2025-06-10 07:00:21,006 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 07:00:21,006 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:21,018 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2b69983c-019d-4781-a89a-14316669e55a
2025-06-10 07:00:21,036 - INFO - Verified VN network id 9 for VN abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:21,036 - INFO - Verifications in API Server for VN ctest-vn-92729951 passed
2025-06-10 07:00:21,036 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:21,052 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2b69983c-019d-4781-a89a-14316669e55a
2025-06-10 07:00:21,062 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2b69983c-019d-4781-a89a-14316669e55a
2025-06-10 07:00:21,072 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1728d076-c3fc-4e01-bb08-ec53f3f48647
2025-06-10 07:00:21,090 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-92729951', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96890402', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12379037126939003982', 'uuid-lslong': '12383721225854272746'}, 'enable': 'true', 'created': '2025-06-10T07:00:18', 'last-modified': '2025-06-10T07:00:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.605237'}
2025-06-10 07:00:21,097 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 07:00:21,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92729951 passed
2025-06-10 07:00:21,097 - DEBUG - ====Verifying policy data for ctest-vn-92729951 in API_Server ======
2025-06-10 07:00:21,097 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-10 07:00:21,105 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fc093bcb-6dbc-4c2a-bd5b-db62d0d2ae49
2025-06-10 07:00:21,123 - DEBUG - Requesting: http://10.0.0.65:8082/project/73391bc8-d1bd-4cb6-b759-633de6595f15
2025-06-10 07:00:21,208 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/abcb2cae-1492-4c4e-abdb-d0d7d88244ea
2025-06-10 07:00:21,222 - DEBUG - ==>Verifying data for policy with id: 583435e9-4e9c-4f56-924b-d4f880987fad, fqn: ['default-domain', 'ctest-TestBasicPolicy-96890402', 'ctest-policy-allow-all-78638129']
2025-06-10 07:00:21,223 - INFO - VN ctest-vn-92729951 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 07:00:21,223 - DEBUG - Verifying the vn in opserver
2025-06-10 07:00:21,223 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-92729951 virtual network link through opserver 10.0.0.65
2025-06-10 07:00:21,223 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-10 07:00:21,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-92729951', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-92729951?flat'}
2025-06-10 07:00:21,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96890402:ctest-vn-92729951 is found in opserver
2025-06-10 07:00:21,250 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 07:00:21,256 - DEBUG - VRF ids for VN ctest-vn-92729951: {}
2025-06-10 07:00:21,319 - DEBUG - Services list from nova: [