2025-07-24 02:24:36,193 - INFO - Domain Default found not creating
2025-07-24 02:24:36,347 - INFO - Project ctest-TestBasicPolicy-61741536 not found, creating it
2025-07-24 02:24:36,827 - INFO - Created Project:ctest-TestBasicPolicy-61741536, ID : f01b2101-2fdb-4e1c-828f-d2a36fa975fb
2025-07-24 02:24:38,896 - INFO - ================================================================================
2025-07-24 02:24:38,896 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-24 02:24:38,896 - 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-07-24 02:24:39,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-07-24 02:24:39,157 - INFO - Initial checks done. Running the testcase now
2025-07-24 02:24:39,157 - INFO -
2025-07-24 02:24:39,721 - DEBUG - Response for create_network : {'network': {'id': '3983844c-b965-4b48-84eb-8a37be5a7c8d', 'name': 'ctest-vn-66458377', 'tenant_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'project_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-vn-66458377'], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:24:39,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '56fddba3-47c3-432d-938f-f147d696ac33', 'name': '', 'tenant_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'network_id': '3983844c-b965-4b48-84eb-8a37be5a7c8d', 'ip_version': 4, 'cidr': '108.129.184.192/26', 'allocation_pools': [{'start': '108.129.184.194', 'end': '108.129.184.254'}], 'gateway_ip': '108.129.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.129.184.194', 'tags': [], 'project_id': 'f01b21012fdb4e1c828fd2a36fa975fb'}}
2025-07-24 02:24:39,905 - INFO - Created VN ctest-vn-66458377
2025-07-24 02:24:39,961 - DEBUG - VN ctest-vn-66458377 UUID is 3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:40,259 - DEBUG - Response for create_network : {'network': {'id': '5dee1ec9-ca94-41f2-852b-a2757931cc23', 'name': 'ctest-vn-48917220', 'tenant_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'project_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-vn-48917220'], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:24:40,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '84d35f21-b112-433b-a7d3-38b122227da2', 'name': '', 'tenant_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'network_id': '5dee1ec9-ca94-41f2-852b-a2757931cc23', 'ip_version': 4, 'cidr': '191.47.111.192/26', 'allocation_pools': [{'start': '191.47.111.194', 'end': '191.47.111.254'}], 'gateway_ip': '191.47.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.47.111.194', 'tags': [], 'project_id': 'f01b21012fdb4e1c828fd2a36fa975fb'}}
2025-07-24 02:24:40,437 - INFO - Created VN ctest-vn-48917220
2025-07-24 02:24:40,489 - DEBUG - VN ctest-vn-48917220 UUID is 5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:40,612 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-66458377, 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-61741536:ctest-vn-48917220, 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-07-24 02:24:40,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3983844c-b965-4b48-84eb-8a37be5a7c8d', 'name': 'ctest-vn-66458377', 'tenant_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'project_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56fddba3-47c3-432d-938f-f147d696ac33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-vn-66458377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-policy-allow-all-99184486']], 'subnet_ipam': [{'subnet_cidr': '108.129.184.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:24:41,173 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5dee1ec9-ca94-41f2-852b-a2757931cc23', 'name': 'ctest-vn-48917220', 'tenant_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'project_id': 'f01b21012fdb4e1c828fd2a36fa975fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84d35f21-b112-433b-a7d3-38b122227da2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-vn-48917220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-policy-allow-all-99184486']], 'subnet_ipam': [{'subnet_cidr': '191.47.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:24:41,341 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-24 02:24:41,644 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-24 02:24:41,676 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9e3d9b4e-b642-4013-986a-3b45792f8414
2025-07-24 02:24:41,690 - DEBUG - Requesting: http://10.0.0.249:8082/project/f01b2101-2fdb-4e1c-828f-d2a36fa975fb
2025-07-24 02:24:41,770 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:41,783 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:41,793 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/829348cc-898b-4427-8d96-63a4a3e5c265
2025-07-24 02:24:41,801 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/829348cc-898b-4427-8d96-63a4a3e5c265
2025-07-24 02:24:41,808 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/739a3097-e3b3-4f2d-8c61-60167b60164f
2025-07-24 02:24:41,815 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-24 02:24:41,815 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:41,827 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/829348cc-898b-4427-8d96-63a4a3e5c265
2025-07-24 02:24:41,842 - INFO - Verified VN network id 9 for VN 3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:41,842 - INFO - Verifications in API Server for VN ctest-vn-66458377 passed
2025-07-24 02:24:41,842 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:41,853 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/829348cc-898b-4427-8d96-63a4a3e5c265
2025-07-24 02:24:41,861 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/829348cc-898b-4427-8d96-63a4a3e5c265
2025-07-24 02:24:41,870 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/739a3097-e3b3-4f2d-8c61-60167b60164f
2025-07-24 02:24:41,885 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-66458377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61741536', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4144301547173792584', 'uuid-lslong': '9577901004554927245'}, 'enable': 'true', 'created': '2025-07-24T02:24:39', 'last-modified': '2025-07-24T02:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980281'}
2025-07-24 02:24:41,892 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-24 02:24:41,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66458377 passed
2025-07-24 02:24:41,892 - DEBUG - ====Verifying policy data for ctest-vn-66458377 in API_Server ======
2025-07-24 02:24:41,892 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-24 02:24:41,898 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9e3d9b4e-b642-4013-986a-3b45792f8414
2025-07-24 02:24:41,910 - DEBUG - Requesting: http://10.0.0.249:8082/project/f01b2101-2fdb-4e1c-828f-d2a36fa975fb
2025-07-24 02:24:41,986 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3983844c-b965-4b48-84eb-8a37be5a7c8d
2025-07-24 02:24:41,998 - DEBUG - ==>Verifying data for policy with id: 3d765f5e-5a87-46bd-9ffc-1d630e0ff074, fqn: ['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-policy-allow-all-99184486']
2025-07-24 02:24:41,998 - INFO - VN ctest-vn-66458377 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-24 02:24:41,998 - DEBUG - Verifying the vn in opserver
2025-07-24 02:24:41,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-66458377 virtual network link through opserver 10.0.0.249
2025-07-24 02:24:41,998 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-24 02:24:42,315 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-24 02:24:42,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-66458377', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-66458377?flat'}
2025-07-24 02:24:42,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-66458377 is found in opserver
2025-07-24 02:24:42,389 - DEBUG - Do not have enough data to verify VN in agent
2025-07-24 02:24:42,394 - DEBUG - VRF ids for VN ctest-vn-66458377: {}
2025-07-24 02:24:42,395 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-24 02:24:42,401 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9e3d9b4e-b642-4013-986a-3b45792f8414
2025-07-24 02:24:42,413 - DEBUG - Requesting: http://10.0.0.249:8082/project/f01b2101-2fdb-4e1c-828f-d2a36fa975fb
2025-07-24 02:24:42,490 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:42,503 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:42,513 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b64eb52f-3f43-4aaf-b11c-9602568db29a
2025-07-24 02:24:42,521 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b64eb52f-3f43-4aaf-b11c-9602568db29a
2025-07-24 02:24:42,529 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7c27c620-ccf4-4065-ae64-8b7a9b3bbe74
2025-07-24 02:24:42,536 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-24 02:24:42,536 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:42,546 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b64eb52f-3f43-4aaf-b11c-9602568db29a
2025-07-24 02:24:42,561 - INFO - Verified VN network id 10 for VN 5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:42,561 - INFO - Verifications in API Server for VN ctest-vn-48917220 passed
2025-07-24 02:24:42,561 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:42,573 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b64eb52f-3f43-4aaf-b11c-9602568db29a
2025-07-24 02:24:42,580 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b64eb52f-3f43-4aaf-b11c-9602568db29a
2025-07-24 02:24:42,587 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7c27c620-ccf4-4065-ae64-8b7a9b3bbe74
2025-07-24 02:24:42,599 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-48917220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61741536', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6768381142020407794', 'uuid-lslong': '9595942056471153699'}, 'enable': 'true', 'created': '2025-07-24T02:24:40', 'last-modified': '2025-07-24T02:24:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458241'}
2025-07-24 02:24:42,606 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-24 02:24:42,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48917220 passed
2025-07-24 02:24:42,606 - DEBUG - ====Verifying policy data for ctest-vn-48917220 in API_Server ======
2025-07-24 02:24:42,606 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-24 02:24:42,614 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9e3d9b4e-b642-4013-986a-3b45792f8414
2025-07-24 02:24:42,629 - DEBUG - Requesting: http://10.0.0.249:8082/project/f01b2101-2fdb-4e1c-828f-d2a36fa975fb
2025-07-24 02:24:42,704 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dee1ec9-ca94-41f2-852b-a2757931cc23
2025-07-24 02:24:42,714 - DEBUG - ==>Verifying data for policy with id: 3d765f5e-5a87-46bd-9ffc-1d630e0ff074, fqn: ['default-domain', 'ctest-TestBasicPolicy-61741536', 'ctest-policy-allow-all-99184486']
2025-07-24 02:24:42,714 - INFO - VN ctest-vn-48917220 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-24 02:24:42,714 - DEBUG - Verifying the vn in opserver
2025-07-24 02:24:42,714 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-48917220 virtual network link through opserver 10.0.0.249
2025-07-24 02:24:42,714 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-24 02:24:42,725 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-48917220', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-48917220?flat'}
2025-07-24 02:24:42,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61741536:ctest-vn-48917220 is found in opserver
2025-07-24 02:24:42,737 - DEBUG - Do not have enough data to verify VN in agent
2025-07-24 02:24:42,742 - DEBUG - VRF ids for VN ctest-vn-48917220: {}
2025-07-24 02:24:42,823 - DEBUG - Services list from nova: [