2025-08-14 15:23:21,805 - INFO - Domain Default found not creating
2025-08-14 15:23:21,918 - INFO - Project ctest-TestBasicPolicy-99032249 not found, creating it
2025-08-14 15:23:22,364 - INFO - Created Project:ctest-TestBasicPolicy-99032249, ID : a128e111-b2c8-45d4-9259-e5bfd4beebef
2025-08-14 15:23:23,832 - INFO - ================================================================================
2025-08-14 15:23:23,832 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 15:23:23,832 - 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-14 15:23:24,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-14 15:23:24,081 - INFO - Initial checks done. Running the testcase now
2025-08-14 15:23:24,081 - INFO -
2025-08-14 15:23:24,597 - DEBUG - Response for create_network : {'network': {'id': '2d4154e4-33b6-4414-acfb-1668dbb399ec', 'name': 'ctest-vn-46989615', 'tenant_id': 'a128e111b2c845d49259e5bfd4beebef', 'project_id': 'a128e111b2c845d49259e5bfd4beebef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-vn-46989615'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 15:23:24,738 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e06eedf-3bed-4697-b836-a276bcbf5e98', 'name': '', 'tenant_id': 'a128e111b2c845d49259e5bfd4beebef', 'network_id': '2d4154e4-33b6-4414-acfb-1668dbb399ec', 'ip_version': 4, 'cidr': '59.7.207.192/26', 'allocation_pools': [{'start': '59.7.207.194', 'end': '59.7.207.254'}], 'gateway_ip': '59.7.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.7.207.194', 'tags': [], 'project_id': 'a128e111b2c845d49259e5bfd4beebef'}}
2025-08-14 15:23:24,753 - INFO - Created VN ctest-vn-46989615
2025-08-14 15:23:24,804 - DEBUG - VN ctest-vn-46989615 UUID is 2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:25,104 - DEBUG - Response for create_network : {'network': {'id': 'eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb', 'name': 'ctest-vn-01715274', 'tenant_id': 'a128e111b2c845d49259e5bfd4beebef', 'project_id': 'a128e111b2c845d49259e5bfd4beebef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-vn-01715274'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 15:23:25,313 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9b9ee74-5075-4237-b1f2-96b0b08a4712', 'name': '', 'tenant_id': 'a128e111b2c845d49259e5bfd4beebef', 'network_id': 'eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb', 'ip_version': 4, 'cidr': '1.94.216.64/26', 'allocation_pools': [{'start': '1.94.216.66', 'end': '1.94.216.126'}], 'gateway_ip': '1.94.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.94.216.66', 'tags': [], 'project_id': 'a128e111b2c845d49259e5bfd4beebef'}}
2025-08-14 15:23:25,329 - INFO - Created VN ctest-vn-01715274
2025-08-14 15:23:25,380 - DEBUG - VN ctest-vn-01715274 UUID is eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:25,528 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-46989615, 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-99032249:ctest-vn-01715274, 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-14 15:23:25,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d4154e4-33b6-4414-acfb-1668dbb399ec', 'name': 'ctest-vn-46989615', 'tenant_id': 'a128e111b2c845d49259e5bfd4beebef', 'project_id': 'a128e111b2c845d49259e5bfd4beebef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e06eedf-3bed-4697-b836-a276bcbf5e98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-vn-46989615'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-policy-allow-all-94782879']], 'subnet_ipam': [{'subnet_cidr': '59.7.207.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 15:23:26,029 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb', 'name': 'ctest-vn-01715274', 'tenant_id': 'a128e111b2c845d49259e5bfd4beebef', 'project_id': 'a128e111b2c845d49259e5bfd4beebef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9b9ee74-5075-4237-b1f2-96b0b08a4712'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-vn-01715274'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-policy-allow-all-94782879']], 'subnet_ipam': [{'subnet_cidr': '1.94.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 15:23:26,176 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-14 15:23:26,469 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-14 15:23:26,494 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2efb973f-6838-492e-9166-96a0cc45a015
2025-08-14 15:23:26,506 - DEBUG - Requesting: http://10.0.0.254:8082/project/a128e111-b2c8-45d4-9259-e5bfd4beebef
2025-08-14 15:23:26,574 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:26,583 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:26,592 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/166fe34f-49fc-4ee3-89f7-86f2601420ae
2025-08-14 15:23:26,597 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/166fe34f-49fc-4ee3-89f7-86f2601420ae
2025-08-14 15:23:26,603 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d4bfccf7-bd21-4e10-a8bd-40ecf35a0066
2025-08-14 15:23:26,608 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 15:23:26,609 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:26,617 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/166fe34f-49fc-4ee3-89f7-86f2601420ae
2025-08-14 15:23:26,628 - INFO - Verified VN network id 11 for VN 2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:26,629 - INFO - Verifications in API Server for VN ctest-vn-46989615 passed
2025-08-14 15:23:26,629 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:26,637 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/166fe34f-49fc-4ee3-89f7-86f2601420ae
2025-08-14 15:23:26,643 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/166fe34f-49fc-4ee3-89f7-86f2601420ae
2025-08-14 15:23:26,649 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d4bfccf7-bd21-4e10-a8bd-40ecf35a0066
2025-08-14 15:23:26,659 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-46989615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99032249', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3260980944289809428', 'uuid-lslong': '12464581033296370156'}, 'enable': 'true', 'created': '2025-08-14T15:23:24', 'last-modified': '2025-08-14T15:23:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868987'}
2025-08-14 15:23:26,665 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 15:23:26,665 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46989615 passed
2025-08-14 15:23:26,665 - DEBUG - ====Verifying policy data for ctest-vn-46989615 in API_Server ======
2025-08-14 15:23:26,665 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-14 15:23:26,671 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2efb973f-6838-492e-9166-96a0cc45a015
2025-08-14 15:23:26,680 - DEBUG - Requesting: http://10.0.0.254:8082/project/a128e111-b2c8-45d4-9259-e5bfd4beebef
2025-08-14 15:23:26,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2d4154e4-33b6-4414-acfb-1668dbb399ec
2025-08-14 15:23:26,756 - DEBUG - ==>Verifying data for policy with id: 6640e4c5-9a6c-4b62-bb30-fbf0b768d195, fqn: ['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-policy-allow-all-94782879']
2025-08-14 15:23:26,756 - INFO - VN ctest-vn-46989615 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 15:23:26,756 - DEBUG - Verifying the vn in opserver
2025-08-14 15:23:26,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-46989615 virtual network link through opserver 10.0.0.254
2025-08-14 15:23:26,756 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-14 15:23:27,047 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-14 15:23:27,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-46989615', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-46989615?flat'}
2025-08-14 15:23:27,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-46989615 is found in opserver
2025-08-14 15:23:27,104 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 15:23:27,109 - DEBUG - VRF ids for VN ctest-vn-46989615: {}
2025-08-14 15:23:27,109 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-14 15:23:27,113 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2efb973f-6838-492e-9166-96a0cc45a015
2025-08-14 15:23:27,123 - DEBUG - Requesting: http://10.0.0.254:8082/project/a128e111-b2c8-45d4-9259-e5bfd4beebef
2025-08-14 15:23:27,192 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:27,203 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:27,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ddc7867-f31a-4f8f-88a6-b8c8fd9c3199
2025-08-14 15:23:27,217 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ddc7867-f31a-4f8f-88a6-b8c8fd9c3199
2025-08-14 15:23:27,223 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9acd536d-f7c9-4a7f-8cd5-916a694b4461
2025-08-14 15:23:27,229 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 15:23:27,229 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:27,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ddc7867-f31a-4f8f-88a6-b8c8fd9c3199
2025-08-14 15:23:27,249 - INFO - Verified VN network id 12 for VN eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:27,249 - INFO - Verifications in API Server for VN ctest-vn-01715274 passed
2025-08-14 15:23:27,249 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:27,258 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ddc7867-f31a-4f8f-88a6-b8c8fd9c3199
2025-08-14 15:23:27,264 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ddc7867-f31a-4f8f-88a6-b8c8fd9c3199
2025-08-14 15:23:27,269 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9acd536d-f7c9-4a7f-8cd5-916a694b4461
2025-08-14 15:23:27,280 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-01715274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99032249', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16964820331489480358', 'uuid-lslong': '12317016816862777275'}, 'enable': 'true', 'created': '2025-08-14T15:23:25', 'last-modified': '2025-08-14T15:23:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.271682'}
2025-08-14 15:23:27,285 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 15:23:27,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01715274 passed
2025-08-14 15:23:27,285 - DEBUG - ====Verifying policy data for ctest-vn-01715274 in API_Server ======
2025-08-14 15:23:27,285 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-14 15:23:27,290 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2efb973f-6838-492e-9166-96a0cc45a015
2025-08-14 15:23:27,299 - DEBUG - Requesting: http://10.0.0.254:8082/project/a128e111-b2c8-45d4-9259-e5bfd4beebef
2025-08-14 15:23:27,366 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb6f2635-40c1-4ea6-aaee-d5895d9e4fbb
2025-08-14 15:23:27,375 - DEBUG - ==>Verifying data for policy with id: 6640e4c5-9a6c-4b62-bb30-fbf0b768d195, fqn: ['default-domain', 'ctest-TestBasicPolicy-99032249', 'ctest-policy-allow-all-94782879']
2025-08-14 15:23:27,375 - INFO - VN ctest-vn-01715274 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 15:23:27,375 - DEBUG - Verifying the vn in opserver
2025-08-14 15:23:27,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-01715274 virtual network link through opserver 10.0.0.254
2025-08-14 15:23:27,375 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-14 15:23:27,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-01715274', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-01715274?flat'}
2025-08-14 15:23:27,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99032249:ctest-vn-01715274 is found in opserver
2025-08-14 15:23:27,394 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 15:23:27,399 - DEBUG - VRF ids for VN ctest-vn-01715274: {}
2025-08-14 15:23:27,446 - DEBUG - Services list from nova: [