2025-08-18 15:38:28,481 - INFO - Domain Default found not creating
2025-08-18 15:38:28,617 - INFO - Project ctest-TestBasicPolicy-66821602 not found, creating it
2025-08-18 15:38:29,065 - INFO - Created Project:ctest-TestBasicPolicy-66821602, ID : 52cfe692-d17d-406c-8685-634ea6a92adc
2025-08-18 15:38:30,591 - INFO - ================================================================================
2025-08-18 15:38:30,592 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 15:38:30,592 - 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-18 15:38:30,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-18 15:38:30,855 - INFO - Initial checks done. Running the testcase now
2025-08-18 15:38:30,855 - INFO -
2025-08-18 15:38:31,443 - DEBUG - Response for create_network : {'network': {'id': '481ee27c-5feb-4291-8530-841a5fb3fc3f', 'name': 'ctest-vn-04928045', 'tenant_id': '52cfe692d17d406c8685634ea6a92adc', 'project_id': '52cfe692d17d406c8685634ea6a92adc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-vn-04928045'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 15:38:31,639 - DEBUG - Response for create_subnet : {'subnet': {'id': '49d1f0c8-3b05-48a2-85e4-21a1ce79ca3e', 'name': '', 'tenant_id': '52cfe692d17d406c8685634ea6a92adc', 'network_id': '481ee27c-5feb-4291-8530-841a5fb3fc3f', 'ip_version': 4, 'cidr': '94.219.12.0/26', 'allocation_pools': [{'start': '94.219.12.2', 'end': '94.219.12.62'}], 'gateway_ip': '94.219.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.219.12.2', 'tags': [], 'project_id': '52cfe692d17d406c8685634ea6a92adc'}}
2025-08-18 15:38:31,656 - INFO - Created VN ctest-vn-04928045
2025-08-18 15:38:31,714 - DEBUG - VN ctest-vn-04928045 UUID is 481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:32,028 - DEBUG - Response for create_network : {'network': {'id': '10ad2d80-9bbf-4c72-a9b3-01c51d158f2a', 'name': 'ctest-vn-07258853', 'tenant_id': '52cfe692d17d406c8685634ea6a92adc', 'project_id': '52cfe692d17d406c8685634ea6a92adc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-vn-07258853'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 15:38:32,195 - DEBUG - Response for create_subnet : {'subnet': {'id': '49914ea7-1993-4b7b-ad97-c4d127bfac44', 'name': '', 'tenant_id': '52cfe692d17d406c8685634ea6a92adc', 'network_id': '10ad2d80-9bbf-4c72-a9b3-01c51d158f2a', 'ip_version': 4, 'cidr': '47.244.38.128/26', 'allocation_pools': [{'start': '47.244.38.130', 'end': '47.244.38.190'}], 'gateway_ip': '47.244.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.244.38.130', 'tags': [], 'project_id': '52cfe692d17d406c8685634ea6a92adc'}}
2025-08-18 15:38:32,210 - INFO - Created VN ctest-vn-07258853
2025-08-18 15:38:32,266 - DEBUG - VN ctest-vn-07258853 UUID is 10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:32,413 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-04928045, 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-66821602:ctest-vn-07258853, 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-18 15:38:32,715 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '481ee27c-5feb-4291-8530-841a5fb3fc3f', 'name': 'ctest-vn-04928045', 'tenant_id': '52cfe692d17d406c8685634ea6a92adc', 'project_id': '52cfe692d17d406c8685634ea6a92adc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49d1f0c8-3b05-48a2-85e4-21a1ce79ca3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-vn-04928045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-policy-allow-all-01970222']], 'subnet_ipam': [{'subnet_cidr': '94.219.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 15:38:32,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10ad2d80-9bbf-4c72-a9b3-01c51d158f2a', 'name': 'ctest-vn-07258853', 'tenant_id': '52cfe692d17d406c8685634ea6a92adc', 'project_id': '52cfe692d17d406c8685634ea6a92adc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49914ea7-1993-4b7b-ad97-c4d127bfac44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-vn-07258853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-policy-allow-all-01970222']], 'subnet_ipam': [{'subnet_cidr': '47.244.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 15:38:33,114 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 15:38:33,452 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 15:38:33,477 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215
2025-08-18 15:38:33,488 - DEBUG - Requesting: http://10.0.0.254:8082/project/52cfe692-d17d-406c-8685-634ea6a92adc
2025-08-18 15:38:33,562 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:33,571 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:33,579 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/93c864c3-84ac-4704-85d0-7c53a25e058e
2025-08-18 15:38:33,585 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/93c864c3-84ac-4704-85d0-7c53a25e058e
2025-08-18 15:38:33,590 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1335ca06-5f33-467d-9188-ff811d346684
2025-08-18 15:38:33,595 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 15:38:33,595 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:33,603 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/93c864c3-84ac-4704-85d0-7c53a25e058e
2025-08-18 15:38:33,614 - INFO - Verified VN network id 11 for VN 481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:33,614 - INFO - Verifications in API Server for VN ctest-vn-04928045 passed
2025-08-18 15:38:33,614 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:33,623 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/93c864c3-84ac-4704-85d0-7c53a25e058e
2025-08-18 15:38:33,628 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/93c864c3-84ac-4704-85d0-7c53a25e058e
2025-08-18 15:38:33,633 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1335ca06-5f33-467d-9188-ff811d346684
2025-08-18 15:38:33,642 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-04928045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66821602', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5196840043845206673', 'uuid-lslong': '9597316054736174143'}, 'enable': 'true', 'created': '2025-08-18T15:38:31', 'last-modified': '2025-08-18T15:38:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954016'}
2025-08-18 15:38:33,648 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 15:38:33,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04928045 passed
2025-08-18 15:38:33,649 - DEBUG - ====Verifying policy data for ctest-vn-04928045 in API_Server ======
2025-08-18 15:38:33,649 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 15:38:33,654 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215
2025-08-18 15:38:33,665 - DEBUG - Requesting: http://10.0.0.254:8082/project/52cfe692-d17d-406c-8685-634ea6a92adc
2025-08-18 15:38:33,736 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/481ee27c-5feb-4291-8530-841a5fb3fc3f
2025-08-18 15:38:33,745 - DEBUG - ==>Verifying data for policy with id: ea75cd04-b19b-493c-aa75-53684011118a, fqn: ['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-policy-allow-all-01970222']
2025-08-18 15:38:33,745 - INFO - VN ctest-vn-04928045 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 15:38:33,745 - DEBUG - Verifying the vn in opserver
2025-08-18 15:38:33,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-04928045 virtual network link through opserver 10.0.0.254
2025-08-18 15:38:33,745 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 15:38:34,077 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 15:38:34,128 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-04928045', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-04928045?flat'}
2025-08-18 15:38:34,128 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-04928045 is found in opserver
2025-08-18 15:38:34,137 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 15:38:34,141 - DEBUG - VRF ids for VN ctest-vn-04928045: {}
2025-08-18 15:38:34,141 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 15:38:34,145 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215
2025-08-18 15:38:34,155 - DEBUG - Requesting: http://10.0.0.254:8082/project/52cfe692-d17d-406c-8685-634ea6a92adc
2025-08-18 15:38:34,227 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:34,237 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:34,245 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1d63f677-5af2-407e-9a84-6e8b30a261be
2025-08-18 15:38:34,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1d63f677-5af2-407e-9a84-6e8b30a261be
2025-08-18 15:38:34,257 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/726484a6-df6d-4894-acec-91c9afb9e315
2025-08-18 15:38:34,263 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 15:38:34,263 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:34,271 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1d63f677-5af2-407e-9a84-6e8b30a261be
2025-08-18 15:38:34,282 - INFO - Verified VN network id 12 for VN 10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:34,282 - INFO - Verifications in API Server for VN ctest-vn-07258853 passed
2025-08-18 15:38:34,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:34,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1d63f677-5af2-407e-9a84-6e8b30a261be
2025-08-18 15:38:34,301 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1d63f677-5af2-407e-9a84-6e8b30a261be
2025-08-18 15:38:34,311 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/726484a6-df6d-4894-acec-91c9afb9e315
2025-08-18 15:38:34,329 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-07258853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66821602', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1201666705969859698', 'uuid-lslong': '12228119359349165866'}, 'enable': 'true', 'created': '2025-08-18T15:38:31', 'last-modified': '2025-08-18T15:38:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405392'}
2025-08-18 15:38:34,335 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 15:38:34,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07258853 passed
2025-08-18 15:38:34,335 - DEBUG - ====Verifying policy data for ctest-vn-07258853 in API_Server ======
2025-08-18 15:38:34,335 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-18 15:38:34,340 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215
2025-08-18 15:38:34,349 - DEBUG - Requesting: http://10.0.0.254:8082/project/52cfe692-d17d-406c-8685-634ea6a92adc
2025-08-18 15:38:34,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/10ad2d80-9bbf-4c72-a9b3-01c51d158f2a
2025-08-18 15:38:34,436 - DEBUG - ==>Verifying data for policy with id: ea75cd04-b19b-493c-aa75-53684011118a, fqn: ['default-domain', 'ctest-TestBasicPolicy-66821602', 'ctest-policy-allow-all-01970222']
2025-08-18 15:38:34,436 - INFO - VN ctest-vn-07258853 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 15:38:34,436 - DEBUG - Verifying the vn in opserver
2025-08-18 15:38:34,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-07258853 virtual network link through opserver 10.0.0.254
2025-08-18 15:38:34,436 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-18 15:38:34,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-07258853', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-07258853?flat'}
2025-08-18 15:38:34,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66821602:ctest-vn-07258853 is found in opserver
2025-08-18 15:38:34,454 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 15:38:34,460 - DEBUG - VRF ids for VN ctest-vn-07258853: {}
2025-08-18 15:38:34,517 - DEBUG - Services list from nova: [