2025-10-05 21:09:44,866 - INFO - Domain Default found not creating
2025-10-05 21:09:44,997 - INFO - Project ctest-TestBasicPolicy-18229758 not found, creating it
2025-10-05 21:09:45,425 - INFO - Created Project:ctest-TestBasicPolicy-18229758, ID : 95da5ac9-5d10-470c-82bb-90d7d2416f38
2025-10-05 21:09:46,785 - INFO - ================================================================================
2025-10-05 21:09:46,785 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-05 21:09:46,785 - 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-10-05 21:09:47,039 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-05 21:09:47,039 - INFO - Initial checks done. Running the testcase now
2025-10-05 21:09:47,039 - INFO -
2025-10-05 21:09:47,538 - DEBUG - Response for create_network : {'network': {'id': 'bfd0b369-a176-4e0c-ba49-eef361a403cc', 'name': 'ctest-vn-99009273', 'tenant_id': '95da5ac95d10470c82bb90d7d2416f38', 'project_id': '95da5ac95d10470c82bb90d7d2416f38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-vn-99009273'], 'port_security_enabled': True, 'description': ''}}
2025-10-05 21:09:47,683 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb3e68d7-d378-43eb-aabc-162f9d4c9ff9', 'name': '', 'tenant_id': '95da5ac95d10470c82bb90d7d2416f38', 'network_id': 'bfd0b369-a176-4e0c-ba49-eef361a403cc', 'ip_version': 4, 'cidr': '82.167.11.192/26', 'allocation_pools': [{'start': '82.167.11.194', 'end': '82.167.11.254'}], 'gateway_ip': '82.167.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.167.11.194', 'tags': [], 'project_id': '95da5ac95d10470c82bb90d7d2416f38'}}
2025-10-05 21:09:47,701 - INFO - Created VN ctest-vn-99009273
2025-10-05 21:09:47,758 - DEBUG - VN ctest-vn-99009273 UUID is bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:48,065 - DEBUG - Response for create_network : {'network': {'id': '3cfbdb39-c770-4611-a5ca-c2f75d7740e0', 'name': 'ctest-vn-75101080', 'tenant_id': '95da5ac95d10470c82bb90d7d2416f38', 'project_id': '95da5ac95d10470c82bb90d7d2416f38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-vn-75101080'], 'port_security_enabled': True, 'description': ''}}
2025-10-05 21:09:48,216 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c58b3ad-6119-4b4b-886e-efed96a1771c', 'name': '', 'tenant_id': '95da5ac95d10470c82bb90d7d2416f38', 'network_id': '3cfbdb39-c770-4611-a5ca-c2f75d7740e0', 'ip_version': 4, 'cidr': '194.80.86.64/26', 'allocation_pools': [{'start': '194.80.86.66', 'end': '194.80.86.126'}], 'gateway_ip': '194.80.86.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.80.86.66', 'tags': [], 'project_id': '95da5ac95d10470c82bb90d7d2416f38'}}
2025-10-05 21:09:48,232 - INFO - Created VN ctest-vn-75101080
2025-10-05 21:09:48,282 - DEBUG - VN ctest-vn-75101080 UUID is 3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:48,430 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-99009273, 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-18229758:ctest-vn-75101080, 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-10-05 21:09:48,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfd0b369-a176-4e0c-ba49-eef361a403cc', 'name': 'ctest-vn-99009273', 'tenant_id': '95da5ac95d10470c82bb90d7d2416f38', 'project_id': '95da5ac95d10470c82bb90d7d2416f38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb3e68d7-d378-43eb-aabc-162f9d4c9ff9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-vn-99009273'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-policy-allow-all-00238443']], 'subnet_ipam': [{'subnet_cidr': '82.167.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-05 21:09:48,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cfbdb39-c770-4611-a5ca-c2f75d7740e0', 'name': 'ctest-vn-75101080', 'tenant_id': '95da5ac95d10470c82bb90d7d2416f38', 'project_id': '95da5ac95d10470c82bb90d7d2416f38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c58b3ad-6119-4b4b-886e-efed96a1771c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-vn-75101080'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-policy-allow-all-00238443']], 'subnet_ipam': [{'subnet_cidr': '194.80.86.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-05 21:09:48,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 21:09:49,278 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 21:09:49,304 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9125a86-92c8-4326-9e90-e120c6635b3f
2025-10-05 21:09:49,314 - DEBUG - Requesting: http://10.0.0.38:8082/project/95da5ac9-5d10-470c-82bb-90d7d2416f38
2025-10-05 21:09:49,404 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:49,412 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:49,419 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b18577-bb6f-4446-aa95-5d305aa27baf
2025-10-05 21:09:49,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b18577-bb6f-4446-aa95-5d305aa27baf
2025-10-05 21:09:49,429 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a847983-10f8-4e85-9dfe-cb0c94299bc5
2025-10-05 21:09:49,434 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-05 21:09:49,435 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:49,443 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b18577-bb6f-4446-aa95-5d305aa27baf
2025-10-05 21:09:49,464 - INFO - Verified VN network id 12 for VN bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:49,464 - INFO - Verifications in API Server for VN ctest-vn-99009273 passed
2025-10-05 21:09:49,464 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:49,474 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b18577-bb6f-4446-aa95-5d305aa27baf
2025-10-05 21:09:49,481 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2b18577-bb6f-4446-aa95-5d305aa27baf
2025-10-05 21:09:49,487 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a847983-10f8-4e85-9dfe-cb0c94299bc5
2025-10-05 21:09:49,499 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-99009273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18229758', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13821744522661875212', 'uuid-lslong': '13423522893437076428'}, 'enable': 'true', 'created': '2025-10-05T21:09:47', 'last-modified': '2025-10-05T21:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805155'}
2025-10-05 21:09:49,506 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-05 21:09:49,506 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99009273 passed
2025-10-05 21:09:49,506 - DEBUG - ====Verifying policy data for ctest-vn-99009273 in API_Server ======
2025-10-05 21:09:49,506 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 21:09:49,512 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9125a86-92c8-4326-9e90-e120c6635b3f
2025-10-05 21:09:49,521 - DEBUG - Requesting: http://10.0.0.38:8082/project/95da5ac9-5d10-470c-82bb-90d7d2416f38
2025-10-05 21:09:49,589 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfd0b369-a176-4e0c-ba49-eef361a403cc
2025-10-05 21:09:49,597 - DEBUG - ==>Verifying data for policy with id: 10df6bfe-826a-42bf-a00a-dc1fb29495a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-policy-allow-all-00238443']
2025-10-05 21:09:49,597 - INFO - VN ctest-vn-99009273 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-05 21:09:49,597 - DEBUG - Verifying the vn in opserver
2025-10-05 21:09:49,597 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-99009273 virtual network link through opserver 10.0.0.38
2025-10-05 21:09:49,597 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-05 21:09:49,893 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-05 21:09:49,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-99009273', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-99009273?flat'}
2025-10-05 21:09:49,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-99009273 is found in opserver
2025-10-05 21:09:49,955 - DEBUG - Do not have enough data to verify VN in agent
2025-10-05 21:09:49,959 - DEBUG - VRF ids for VN ctest-vn-99009273: {}
2025-10-05 21:09:49,959 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 21:09:49,964 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9125a86-92c8-4326-9e90-e120c6635b3f
2025-10-05 21:09:49,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/95da5ac9-5d10-470c-82bb-90d7d2416f38
2025-10-05 21:09:50,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:50,049 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:50,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfef65fd-5c71-401f-952a-a1b11bbbf6c1
2025-10-05 21:09:50,064 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfef65fd-5c71-401f-952a-a1b11bbbf6c1
2025-10-05 21:09:50,070 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac092edc-ae38-4a0c-9260-ea5e9267538f
2025-10-05 21:09:50,074 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-05 21:09:50,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:50,082 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfef65fd-5c71-401f-952a-a1b11bbbf6c1
2025-10-05 21:09:50,093 - INFO - Verified VN network id 13 for VN 3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:50,093 - INFO - Verifications in API Server for VN ctest-vn-75101080 passed
2025-10-05 21:09:50,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:50,100 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfef65fd-5c71-401f-952a-a1b11bbbf6c1
2025-10-05 21:09:50,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfef65fd-5c71-401f-952a-a1b11bbbf6c1
2025-10-05 21:09:50,112 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac092edc-ae38-4a0c-9260-ea5e9267538f
2025-10-05 21:09:50,121 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-75101080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18229758', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4394346902635693585', 'uuid-lslong': '11946575329234469088'}, 'enable': 'true', 'created': '2025-10-05T21:09:48', 'last-modified': '2025-10-05T21:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.265692'}
2025-10-05 21:09:50,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-05 21:09:50,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75101080 passed
2025-10-05 21:09:50,126 - DEBUG - ====Verifying policy data for ctest-vn-75101080 in API_Server ======
2025-10-05 21:09:50,126 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-05 21:09:50,130 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c9125a86-92c8-4326-9e90-e120c6635b3f
2025-10-05 21:09:50,140 - DEBUG - Requesting: http://10.0.0.38:8082/project/95da5ac9-5d10-470c-82bb-90d7d2416f38
2025-10-05 21:09:50,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3cfbdb39-c770-4611-a5ca-c2f75d7740e0
2025-10-05 21:09:50,213 - DEBUG - ==>Verifying data for policy with id: 10df6bfe-826a-42bf-a00a-dc1fb29495a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-18229758', 'ctest-policy-allow-all-00238443']
2025-10-05 21:09:50,213 - INFO - VN ctest-vn-75101080 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-05 21:09:50,213 - DEBUG - Verifying the vn in opserver
2025-10-05 21:09:50,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-75101080 virtual network link through opserver 10.0.0.38
2025-10-05 21:09:50,213 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-05 21:09:50,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-75101080', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-75101080?flat'}
2025-10-05 21:09:50,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18229758:ctest-vn-75101080 is found in opserver
2025-10-05 21:09:50,228 - DEBUG - Do not have enough data to verify VN in agent
2025-10-05 21:09:50,231 - DEBUG - VRF ids for VN ctest-vn-75101080: {}
2025-10-05 21:09:50,282 - DEBUG - Services list from nova: [