2025-11-03 16:45:28,144 - INFO - Domain Default found not creating
2025-11-03 16:45:28,292 - INFO - Project ctest-TestBasicPolicy-75216747 not found, creating it
2025-11-03 16:45:28,719 - INFO - Created Project:ctest-TestBasicPolicy-75216747, ID : 2e47c78b-3db6-4f78-941c-e7d63d779940
2025-11-03 16:45:30,680 - INFO - ================================================================================
2025-11-03 16:45:30,680 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 16:45:30,680 - 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-11-03 16:45:30,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-11-03 16:45:30,934 - INFO - Initial checks done. Running the testcase now
2025-11-03 16:45:30,934 - INFO -
2025-11-03 16:45:31,416 - DEBUG - Response for create_network : {'network': {'id': 'de104edc-8783-45d9-981f-e2a253a8ba36', 'name': 'ctest-vn-09639558', 'tenant_id': '2e47c78b3db64f78941ce7d63d779940', 'project_id': '2e47c78b3db64f78941ce7d63d779940', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-vn-09639558'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 16:45:31,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '11756e87-b9e8-4c94-9a0a-268dad560f98', 'name': '', 'tenant_id': '2e47c78b3db64f78941ce7d63d779940', 'network_id': 'de104edc-8783-45d9-981f-e2a253a8ba36', 'ip_version': 4, 'cidr': '94.195.209.192/26', 'allocation_pools': [{'start': '94.195.209.194', 'end': '94.195.209.254'}], 'gateway_ip': '94.195.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.195.209.194', 'tags': [], 'project_id': '2e47c78b3db64f78941ce7d63d779940'}}
2025-11-03 16:45:31,604 - INFO - Created VN ctest-vn-09639558
2025-11-03 16:45:31,656 - DEBUG - VN ctest-vn-09639558 UUID is de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:31,979 - DEBUG - Response for create_network : {'network': {'id': '8a8a87d9-5e70-41ae-8681-12cc4a61a2df', 'name': 'ctest-vn-50602131', 'tenant_id': '2e47c78b3db64f78941ce7d63d779940', 'project_id': '2e47c78b3db64f78941ce7d63d779940', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-vn-50602131'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 16:45:32,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adfaa74e-8ed7-49ec-bc43-4f121e1feb59', 'name': '', 'tenant_id': '2e47c78b3db64f78941ce7d63d779940', 'network_id': '8a8a87d9-5e70-41ae-8681-12cc4a61a2df', 'ip_version': 4, 'cidr': '15.79.137.0/26', 'allocation_pools': [{'start': '15.79.137.2', 'end': '15.79.137.62'}], 'gateway_ip': '15.79.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.79.137.2', 'tags': [], 'project_id': '2e47c78b3db64f78941ce7d63d779940'}}
2025-11-03 16:45:32,146 - INFO - Created VN ctest-vn-50602131
2025-11-03 16:45:32,200 - DEBUG - VN ctest-vn-50602131 UUID is 8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:32,344 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-09639558, 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-75216747:ctest-vn-50602131, 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-11-03 16:45:32,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de104edc-8783-45d9-981f-e2a253a8ba36', 'name': 'ctest-vn-09639558', 'tenant_id': '2e47c78b3db64f78941ce7d63d779940', 'project_id': '2e47c78b3db64f78941ce7d63d779940', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11756e87-b9e8-4c94-9a0a-268dad560f98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-vn-09639558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-policy-allow-all-42282880']], 'subnet_ipam': [{'subnet_cidr': '94.195.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 16:45:32,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a8a87d9-5e70-41ae-8681-12cc4a61a2df', 'name': 'ctest-vn-50602131', 'tenant_id': '2e47c78b3db64f78941ce7d63d779940', 'project_id': '2e47c78b3db64f78941ce7d63d779940', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['adfaa74e-8ed7-49ec-bc43-4f121e1feb59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-vn-50602131'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-policy-allow-all-42282880']], 'subnet_ipam': [{'subnet_cidr': '15.79.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 16:45:33,024 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-03 16:45:33,320 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-03 16:45:33,347 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a
2025-11-03 16:45:33,359 - DEBUG - Requesting: http://10.0.0.242:8082/project/2e47c78b-3db6-4f78-941c-e7d63d779940
2025-11-03 16:45:33,432 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:33,443 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:33,457 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83e59670-9cea-42cf-9291-e11d206e5c5d
2025-11-03 16:45:33,463 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83e59670-9cea-42cf-9291-e11d206e5c5d
2025-11-03 16:45:33,470 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/00cbc857-5c65-404c-bd01-a5767cf938bc
2025-11-03 16:45:33,475 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 16:45:33,475 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:33,484 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83e59670-9cea-42cf-9291-e11d206e5c5d
2025-11-03 16:45:33,500 - INFO - Verified VN network id 10 for VN de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:33,500 - INFO - Verifications in API Server for VN ctest-vn-09639558 passed
2025-11-03 16:45:33,500 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:33,509 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83e59670-9cea-42cf-9291-e11d206e5c5d
2025-11-03 16:45:33,515 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/83e59670-9cea-42cf-9291-e11d206e5c5d
2025-11-03 16:45:33,521 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/00cbc857-5c65-404c-bd01-a5767cf938bc
2025-11-03 16:45:33,537 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-09639558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75216747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16001376185120671193', 'uuid-lslong': '10961729204859222582'}, 'enable': 'true', 'created': '2025-11-03T16:45:31', 'last-modified': '2025-11-03T16:45:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930388'}
2025-11-03 16:45:33,543 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 16:45:33,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09639558 passed
2025-11-03 16:45:33,543 - DEBUG - ====Verifying policy data for ctest-vn-09639558 in API_Server ======
2025-11-03 16:45:33,543 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-03 16:45:33,548 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a
2025-11-03 16:45:33,558 - DEBUG - Requesting: http://10.0.0.242:8082/project/2e47c78b-3db6-4f78-941c-e7d63d779940
2025-11-03 16:45:33,629 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/de104edc-8783-45d9-981f-e2a253a8ba36
2025-11-03 16:45:33,637 - DEBUG - ==>Verifying data for policy with id: 987ded3c-a39a-4060-84e9-7c2a85df6768, fqn: ['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-policy-allow-all-42282880']
2025-11-03 16:45:33,637 - INFO - VN ctest-vn-09639558 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 16:45:33,637 - DEBUG - Verifying the vn in opserver
2025-11-03 16:45:33,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-09639558 virtual network link through opserver 10.0.0.242
2025-11-03 16:45:33,637 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-03 16:45:33,925 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-03 16:45:33,974 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-09639558', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-09639558?flat'}
2025-11-03 16:45:33,974 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-09639558 is found in opserver
2025-11-03 16:45:33,982 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 16:45:33,987 - DEBUG - VRF ids for VN ctest-vn-09639558: {}
2025-11-03 16:45:33,987 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-03 16:45:33,992 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a
2025-11-03 16:45:34,002 - DEBUG - Requesting: http://10.0.0.242:8082/project/2e47c78b-3db6-4f78-941c-e7d63d779940
2025-11-03 16:45:34,071 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:34,084 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:34,093 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd768d60-9a70-416e-91df-2ef83c7ca759
2025-11-03 16:45:34,101 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd768d60-9a70-416e-91df-2ef83c7ca759
2025-11-03 16:45:34,107 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/51b253fb-4f03-4102-a93e-24210e74e231
2025-11-03 16:45:34,113 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 16:45:34,114 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:34,122 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd768d60-9a70-416e-91df-2ef83c7ca759
2025-11-03 16:45:34,134 - INFO - Verified VN network id 11 for VN 8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:34,134 - INFO - Verifications in API Server for VN ctest-vn-50602131 passed
2025-11-03 16:45:34,134 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:34,143 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd768d60-9a70-416e-91df-2ef83c7ca759
2025-11-03 16:45:34,148 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd768d60-9a70-416e-91df-2ef83c7ca759
2025-11-03 16:45:34,153 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/51b253fb-4f03-4102-a93e-24210e74e231
2025-11-03 16:45:34,163 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-50602131', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75216747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9982940891682193838', 'uuid-lslong': '9692048541708559071'}, 'enable': 'true', 'created': '2025-11-03T16:45:31', 'last-modified': '2025-11-03T16:45:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326888'}
2025-11-03 16:45:34,169 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 16:45:34,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50602131 passed
2025-11-03 16:45:34,169 - DEBUG - ====Verifying policy data for ctest-vn-50602131 in API_Server ======
2025-11-03 16:45:34,169 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-03 16:45:34,174 - DEBUG - Requesting: http://10.0.0.242:8082/domain/6fb115a4-4a13-496d-8d81-8fe8d931463a
2025-11-03 16:45:34,183 - DEBUG - Requesting: http://10.0.0.242:8082/project/2e47c78b-3db6-4f78-941c-e7d63d779940
2025-11-03 16:45:34,249 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8a8a87d9-5e70-41ae-8681-12cc4a61a2df
2025-11-03 16:45:34,257 - DEBUG - ==>Verifying data for policy with id: 987ded3c-a39a-4060-84e9-7c2a85df6768, fqn: ['default-domain', 'ctest-TestBasicPolicy-75216747', 'ctest-policy-allow-all-42282880']
2025-11-03 16:45:34,257 - INFO - VN ctest-vn-50602131 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 16:45:34,257 - DEBUG - Verifying the vn in opserver
2025-11-03 16:45:34,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-50602131 virtual network link through opserver 10.0.0.242
2025-11-03 16:45:34,257 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-03 16:45:34,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-50602131', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-50602131?flat'}
2025-11-03 16:45:34,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75216747:ctest-vn-50602131 is found in opserver
2025-11-03 16:45:34,274 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 16:45:34,278 - DEBUG - VRF ids for VN ctest-vn-50602131: {}
2025-11-03 16:45:34,333 - DEBUG - Services list from nova: [