2025-10-27 17:33:45,672 - INFO - Domain Default found not creating
2025-10-27 17:33:45,832 - INFO - Project ctest-TestBasicPolicy-53824678 not found, creating it
2025-10-27 17:33:46,280 - INFO - Created Project:ctest-TestBasicPolicy-53824678, ID : 062aa155-472c-42a2-8abf-928decd10043
2025-10-27 17:33:47,684 - INFO - ================================================================================
2025-10-27 17:33:47,684 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 17:33:47,684 - 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-27 17:33:47,943 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-10-27 17:33:47,943 - INFO - Initial checks done. Running the testcase now
2025-10-27 17:33:47,944 - INFO -
2025-10-27 17:33:48,489 - DEBUG - Response for create_network : {'network': {'id': '9ed72831-46c1-43ff-9cfa-f7643b3cf95a', 'name': 'ctest-vn-56686222', 'tenant_id': '062aa155472c42a28abf928decd10043', 'project_id': '062aa155472c42a28abf928decd10043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-vn-56686222'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 17:33:48,705 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cec88309-5e29-4ac6-8b21-65e30f84eaec', 'name': '', 'tenant_id': '062aa155472c42a28abf928decd10043', 'network_id': '9ed72831-46c1-43ff-9cfa-f7643b3cf95a', 'ip_version': 4, 'cidr': '4.86.218.192/26', 'allocation_pools': [{'start': '4.86.218.194', 'end': '4.86.218.254'}], 'gateway_ip': '4.86.218.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.86.218.194', 'tags': [], 'project_id': '062aa155472c42a28abf928decd10043'}}
2025-10-27 17:33:48,725 - INFO - Created VN ctest-vn-56686222
2025-10-27 17:33:48,777 - DEBUG - VN ctest-vn-56686222 UUID is 9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:49,063 - DEBUG - Response for create_network : {'network': {'id': '3faaa083-d02d-4d88-af3b-c482e5995cbf', 'name': 'ctest-vn-06555956', 'tenant_id': '062aa155472c42a28abf928decd10043', 'project_id': '062aa155472c42a28abf928decd10043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-vn-06555956'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 17:33:49,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '3465175b-449a-4201-9d3a-58b125c02385', 'name': '', 'tenant_id': '062aa155472c42a28abf928decd10043', 'network_id': '3faaa083-d02d-4d88-af3b-c482e5995cbf', 'ip_version': 4, 'cidr': '182.208.172.64/26', 'allocation_pools': [{'start': '182.208.172.66', 'end': '182.208.172.126'}], 'gateway_ip': '182.208.172.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.208.172.66', 'tags': [], 'project_id': '062aa155472c42a28abf928decd10043'}}
2025-10-27 17:33:49,286 - INFO - Created VN ctest-vn-06555956
2025-10-27 17:33:49,341 - DEBUG - VN ctest-vn-06555956 UUID is 3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:49,493 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-56686222, 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-53824678:ctest-vn-06555956, 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-27 17:33:49,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ed72831-46c1-43ff-9cfa-f7643b3cf95a', 'name': 'ctest-vn-56686222', 'tenant_id': '062aa155472c42a28abf928decd10043', 'project_id': '062aa155472c42a28abf928decd10043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cec88309-5e29-4ac6-8b21-65e30f84eaec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-vn-56686222'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-policy-allow-all-33086621']], 'subnet_ipam': [{'subnet_cidr': '4.86.218.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 17:33:50,001 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3faaa083-d02d-4d88-af3b-c482e5995cbf', 'name': 'ctest-vn-06555956', 'tenant_id': '062aa155472c42a28abf928decd10043', 'project_id': '062aa155472c42a28abf928decd10043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3465175b-449a-4201-9d3a-58b125c02385'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-vn-06555956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-policy-allow-all-33086621']], 'subnet_ipam': [{'subnet_cidr': '182.208.172.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 17:33:50,165 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 17:33:50,463 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 17:33:50,492 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002
2025-10-27 17:33:50,507 - DEBUG - Requesting: http://10.0.0.242:8082/project/062aa155-472c-42a2-8abf-928decd10043
2025-10-27 17:33:50,580 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:50,591 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:50,601 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4da683e0-ab3e-4ad7-a29a-bf7bf0184827
2025-10-27 17:33:50,609 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4da683e0-ab3e-4ad7-a29a-bf7bf0184827
2025-10-27 17:33:50,618 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e7d6a9d3-c1a3-40f7-8cea-54732a30f9dc
2025-10-27 17:33:50,625 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 17:33:50,626 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:50,636 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4da683e0-ab3e-4ad7-a29a-bf7bf0184827
2025-10-27 17:33:50,651 - INFO - Verified VN network id 11 for VN 9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:50,652 - INFO - Verifications in API Server for VN ctest-vn-56686222 passed
2025-10-27 17:33:50,652 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:50,662 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4da683e0-ab3e-4ad7-a29a-bf7bf0184827
2025-10-27 17:33:50,669 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4da683e0-ab3e-4ad7-a29a-bf7bf0184827
2025-10-27 17:33:50,675 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e7d6a9d3-c1a3-40f7-8cea-54732a30f9dc
2025-10-27 17:33:50,688 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-56686222', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53824678', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11445661170090984447', 'uuid-lslong': '11311625423957064026'}, 'enable': 'true', 'created': '2025-10-27T17:33:48', 'last-modified': '2025-10-27T17:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931564'}
2025-10-27 17:33:50,694 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 17:33:50,694 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56686222 passed
2025-10-27 17:33:50,694 - DEBUG - ====Verifying policy data for ctest-vn-56686222 in API_Server ======
2025-10-27 17:33:50,694 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 17:33:50,699 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002
2025-10-27 17:33:50,710 - DEBUG - Requesting: http://10.0.0.242:8082/project/062aa155-472c-42a2-8abf-928decd10043
2025-10-27 17:33:50,779 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9ed72831-46c1-43ff-9cfa-f7643b3cf95a
2025-10-27 17:33:50,788 - DEBUG - ==>Verifying data for policy with id: 80bf23a5-7bb7-41b2-8d3e-2042be2af24e, fqn: ['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-policy-allow-all-33086621']
2025-10-27 17:33:50,788 - INFO - VN ctest-vn-56686222 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 17:33:50,788 - DEBUG - Verifying the vn in opserver
2025-10-27 17:33:50,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-56686222 virtual network link through opserver 10.0.0.242
2025-10-27 17:33:50,789 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 17:33:51,090 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 17:33:51,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-56686222', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-56686222?flat'}
2025-10-27 17:33:51,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-56686222 is found in opserver
2025-10-27 17:33:51,162 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 17:33:51,167 - DEBUG - VRF ids for VN ctest-vn-56686222: {}
2025-10-27 17:33:51,167 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 17:33:51,172 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002
2025-10-27 17:33:51,185 - DEBUG - Requesting: http://10.0.0.242:8082/project/062aa155-472c-42a2-8abf-928decd10043
2025-10-27 17:33:51,253 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:51,263 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:51,272 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d63bc995-1174-41b2-9988-c8efcffe0202
2025-10-27 17:33:51,280 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d63bc995-1174-41b2-9988-c8efcffe0202
2025-10-27 17:33:51,287 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/780eb8f2-b7cf-4d82-be2a-f0268843cb0e
2025-10-27 17:33:51,294 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 17:33:51,294 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:51,303 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d63bc995-1174-41b2-9988-c8efcffe0202
2025-10-27 17:33:51,317 - INFO - Verified VN network id 12 for VN 3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:51,317 - INFO - Verifications in API Server for VN ctest-vn-06555956 passed
2025-10-27 17:33:51,317 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:51,326 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d63bc995-1174-41b2-9988-c8efcffe0202
2025-10-27 17:33:51,333 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d63bc995-1174-41b2-9988-c8efcffe0202
2025-10-27 17:33:51,339 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/780eb8f2-b7cf-4d82-be2a-f0268843cb0e
2025-10-27 17:33:51,350 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-06555956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53824678', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4587655658424061320', 'uuid-lslong': '12626902046740143295'}, 'enable': 'true', 'created': '2025-10-27T17:33:49', 'last-modified': '2025-10-27T17:33:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.366595'}
2025-10-27 17:33:51,356 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 17:33:51,356 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06555956 passed
2025-10-27 17:33:51,356 - DEBUG - ====Verifying policy data for ctest-vn-06555956 in API_Server ======
2025-10-27 17:33:51,356 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 17:33:51,362 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002
2025-10-27 17:33:51,372 - DEBUG - Requesting: http://10.0.0.242:8082/project/062aa155-472c-42a2-8abf-928decd10043
2025-10-27 17:33:51,441 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3faaa083-d02d-4d88-af3b-c482e5995cbf
2025-10-27 17:33:51,450 - DEBUG - ==>Verifying data for policy with id: 80bf23a5-7bb7-41b2-8d3e-2042be2af24e, fqn: ['default-domain', 'ctest-TestBasicPolicy-53824678', 'ctest-policy-allow-all-33086621']
2025-10-27 17:33:51,450 - INFO - VN ctest-vn-06555956 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 17:33:51,450 - DEBUG - Verifying the vn in opserver
2025-10-27 17:33:51,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-06555956 virtual network link through opserver 10.0.0.242
2025-10-27 17:33:51,451 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 17:33:51,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-06555956', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-06555956?flat'}
2025-10-27 17:33:51,460 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53824678:ctest-vn-06555956 is found in opserver
2025-10-27 17:33:51,469 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 17:33:51,475 - DEBUG - VRF ids for VN ctest-vn-06555956: {}
2025-10-27 17:33:51,532 - DEBUG - Services list from nova: [