2025-06-19 12:46:32,287 - INFO - Domain Default found not creating
2025-06-19 12:46:32,435 - INFO - Project ctest-TestBasicPolicy-33907505 not found, creating it
2025-06-19 12:46:32,903 - INFO - Created Project:ctest-TestBasicPolicy-33907505, ID : f51b0c93-4c93-487f-9c06-7259a35140ac
2025-06-19 12:46:34,337 - INFO - ================================================================================
2025-06-19 12:46:34,337 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 12:46:34,337 - 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-06-19 12:46:34,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.14': '0'}} with
2025-06-19 12:46:34,597 - INFO - Initial checks done. Running the testcase now
2025-06-19 12:46:34,598 - INFO -
2025-06-19 12:46:35,285 - DEBUG - Response for create_network : {'network': {'id': '90848a18-f95e-4f64-829c-df8a93c5f437', 'name': 'ctest-vn-27377402', 'tenant_id': 'f51b0c934c93487f9c067259a35140ac', 'project_id': 'f51b0c934c93487f9c067259a35140ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-vn-27377402'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:46:35,506 - DEBUG - Response for create_subnet : {'subnet': {'id': '8475dd21-ae78-4cad-88c3-c742b5075d3f', 'name': '', 'tenant_id': 'f51b0c934c93487f9c067259a35140ac', 'network_id': '90848a18-f95e-4f64-829c-df8a93c5f437', 'ip_version': 4, 'cidr': '144.38.102.192/26', 'allocation_pools': [{'start': '144.38.102.194', 'end': '144.38.102.254'}], 'gateway_ip': '144.38.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.38.102.194', 'tags': [], 'project_id': 'f51b0c934c93487f9c067259a35140ac'}}
2025-06-19 12:46:35,529 - INFO - Created VN ctest-vn-27377402
2025-06-19 12:46:35,582 - DEBUG - VN ctest-vn-27377402 UUID is 90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:35,889 - DEBUG - Response for create_network : {'network': {'id': '57077611-4455-4804-8845-9d658e34f6c6', 'name': 'ctest-vn-88330041', 'tenant_id': 'f51b0c934c93487f9c067259a35140ac', 'project_id': 'f51b0c934c93487f9c067259a35140ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-vn-88330041'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:46:36,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '75a2237b-6391-4f14-b9d1-c5d4e29ad06a', 'name': '', 'tenant_id': 'f51b0c934c93487f9c067259a35140ac', 'network_id': '57077611-4455-4804-8845-9d658e34f6c6', 'ip_version': 4, 'cidr': '112.103.154.128/26', 'allocation_pools': [{'start': '112.103.154.130', 'end': '112.103.154.190'}], 'gateway_ip': '112.103.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.103.154.130', 'tags': [], 'project_id': 'f51b0c934c93487f9c067259a35140ac'}}
2025-06-19 12:46:36,129 - INFO - Created VN ctest-vn-88330041
2025-06-19 12:46:36,186 - DEBUG - VN ctest-vn-88330041 UUID is 57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:36,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-27377402, 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-33907505:ctest-vn-88330041, 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-06-19 12:46:36,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90848a18-f95e-4f64-829c-df8a93c5f437', 'name': 'ctest-vn-27377402', 'tenant_id': 'f51b0c934c93487f9c067259a35140ac', 'project_id': 'f51b0c934c93487f9c067259a35140ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8475dd21-ae78-4cad-88c3-c742b5075d3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-vn-27377402'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-policy-allow-all-86927352']], 'subnet_ipam': [{'subnet_cidr': '144.38.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:46:36,911 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57077611-4455-4804-8845-9d658e34f6c6', 'name': 'ctest-vn-88330041', 'tenant_id': 'f51b0c934c93487f9c067259a35140ac', 'project_id': 'f51b0c934c93487f9c067259a35140ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75a2237b-6391-4f14-b9d1-c5d4e29ad06a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-vn-88330041'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-policy-allow-all-86927352']], 'subnet_ipam': [{'subnet_cidr': '112.103.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 12:46:37,078 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-19 12:46:37,384 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-19 12:46:37,416 - DEBUG - Requesting: http://10.0.0.131:8082/domain/46871b59-f713-4709-8d2f-a838745d15f0
2025-06-19 12:46:37,437 - DEBUG - Requesting: http://10.0.0.131:8082/project/f51b0c93-4c93-487f-9c06-7259a35140ac
2025-06-19 12:46:37,514 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:37,527 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:37,537 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/629b9029-3176-4b28-a8ba-eb18bb353426
2025-06-19 12:46:37,545 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/629b9029-3176-4b28-a8ba-eb18bb353426
2025-06-19 12:46:37,553 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/decbdf56-8654-4c85-a07f-bac4fabed752
2025-06-19 12:46:37,560 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 12:46:37,560 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:37,571 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/629b9029-3176-4b28-a8ba-eb18bb353426
2025-06-19 12:46:37,588 - INFO - Verified VN network id 9 for VN 90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:37,588 - INFO - Verifications in API Server for VN ctest-vn-27377402 passed
2025-06-19 12:46:37,588 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:37,599 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/629b9029-3176-4b28-a8ba-eb18bb353426
2025-06-19 12:46:37,608 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/629b9029-3176-4b28-a8ba-eb18bb353426
2025-06-19 12:46:37,617 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/decbdf56-8654-4c85-a07f-bac4fabed752
2025-06-19 12:46:37,631 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-27377402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33907505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10413600078254985060', 'uuid-lslong': '9411643107575198775'}, 'enable': 'true', 'created': '2025-06-19T12:46:35', 'last-modified': '2025-06-19T12:46:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031818'}
2025-06-19 12:46:37,639 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 12:46:37,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27377402 passed
2025-06-19 12:46:37,639 - DEBUG - ====Verifying policy data for ctest-vn-27377402 in API_Server ======
2025-06-19 12:46:37,639 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-19 12:46:37,646 - DEBUG - Requesting: http://10.0.0.131:8082/domain/46871b59-f713-4709-8d2f-a838745d15f0
2025-06-19 12:46:37,658 - DEBUG - Requesting: http://10.0.0.131:8082/project/f51b0c93-4c93-487f-9c06-7259a35140ac
2025-06-19 12:46:37,731 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/90848a18-f95e-4f64-829c-df8a93c5f437
2025-06-19 12:46:37,741 - DEBUG - ==>Verifying data for policy with id: 605aae46-8eb3-401d-ac0e-0b950fcd153e, fqn: ['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-policy-allow-all-86927352']
2025-06-19 12:46:37,741 - INFO - VN ctest-vn-27377402 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 12:46:37,741 - DEBUG - Verifying the vn in opserver
2025-06-19 12:46:37,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-27377402 virtual network link through opserver 10.0.0.131
2025-06-19 12:46:37,742 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-06-19 12:46:38,034 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-06-19 12:46:38,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-27377402', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-27377402?flat'}
2025-06-19 12:46:38,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-27377402 is found in opserver
2025-06-19 12:46:38,101 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 12:46:38,106 - DEBUG - VRF ids for VN ctest-vn-27377402: {}
2025-06-19 12:46:38,106 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-19 12:46:38,112 - DEBUG - Requesting: http://10.0.0.131:8082/domain/46871b59-f713-4709-8d2f-a838745d15f0
2025-06-19 12:46:38,124 - DEBUG - Requesting: http://10.0.0.131:8082/project/f51b0c93-4c93-487f-9c06-7259a35140ac
2025-06-19 12:46:38,200 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:38,213 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:38,223 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/577163c4-2315-4972-abdd-719571b64bb6
2025-06-19 12:46:38,231 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/577163c4-2315-4972-abdd-719571b64bb6
2025-06-19 12:46:38,239 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/396d3303-f213-4b58-9598-ce2fefb9dba8
2025-06-19 12:46:38,247 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 12:46:38,247 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:38,257 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/577163c4-2315-4972-abdd-719571b64bb6
2025-06-19 12:46:38,274 - INFO - Verified VN network id 10 for VN 57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:38,274 - INFO - Verifications in API Server for VN ctest-vn-88330041 passed
2025-06-19 12:46:38,274 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:38,286 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/577163c4-2315-4972-abdd-719571b64bb6
2025-06-19 12:46:38,294 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/577163c4-2315-4972-abdd-719571b64bb6
2025-06-19 12:46:38,303 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/396d3303-f213-4b58-9598-ce2fefb9dba8
2025-06-19 12:46:38,328 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-88330041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33907505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6271110822669666308', 'uuid-lslong': '9819427622054328006'}, 'enable': 'true', 'created': '2025-06-19T12:46:35', 'last-modified': '2025-06-19T12:46:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.472570'}
2025-06-19 12:46:38,335 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 12:46:38,335 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88330041 passed
2025-06-19 12:46:38,336 - DEBUG - ====Verifying policy data for ctest-vn-88330041 in API_Server ======
2025-06-19 12:46:38,336 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-06-19 12:46:38,344 - DEBUG - Requesting: http://10.0.0.131:8082/domain/46871b59-f713-4709-8d2f-a838745d15f0
2025-06-19 12:46:38,358 - DEBUG - Requesting: http://10.0.0.131:8082/project/f51b0c93-4c93-487f-9c06-7259a35140ac
2025-06-19 12:46:38,437 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/57077611-4455-4804-8845-9d658e34f6c6
2025-06-19 12:46:38,448 - DEBUG - ==>Verifying data for policy with id: 605aae46-8eb3-401d-ac0e-0b950fcd153e, fqn: ['default-domain', 'ctest-TestBasicPolicy-33907505', 'ctest-policy-allow-all-86927352']
2025-06-19 12:46:38,448 - INFO - VN ctest-vn-88330041 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 12:46:38,448 - DEBUG - Verifying the vn in opserver
2025-06-19 12:46:38,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-88330041 virtual network link through opserver 10.0.0.131
2025-06-19 12:46:38,448 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-06-19 12:46:38,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-88330041', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-88330041?flat'}
2025-06-19 12:46:38,460 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33907505:ctest-vn-88330041 is found in opserver
2025-06-19 12:46:38,471 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 12:46:38,477 - DEBUG - VRF ids for VN ctest-vn-88330041: {}
2025-06-19 12:46:38,535 - DEBUG - Services list from nova: [