2025-04-17 10:27:56,252 - INFO - Domain Default found not creating
2025-04-17 10:27:56,467 - INFO - Project ctest-TestBasicPolicy-27828936 not found, creating it
2025-04-17 10:27:57,012 - INFO - Created Project:ctest-TestBasicPolicy-27828936, ID : 7e5cca23-c845-4295-bf25-b0d19c52a7aa
2025-04-17 10:27:58,814 - INFO - ================================================================================
2025-04-17 10:27:58,814 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-17 10:27:58,814 - 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-04-17 10:27:59,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-04-17 10:27:59,102 - INFO - Initial checks done. Running the testcase now
2025-04-17 10:27:59,103 - INFO -
2025-04-17 10:27:59,800 - DEBUG - Response for create_network : {'network': {'id': '3fac644e-2219-449d-ac38-eb7dcae777ff', 'name': 'ctest-vn-48648250', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-48648250'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 10:28:00,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ae920db-a155-4106-8e49-8ac3da169d84', 'name': '', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'network_id': '3fac644e-2219-449d-ac38-eb7dcae777ff', 'ip_version': 4, 'cidr': '50.95.109.192/26', 'allocation_pools': [{'start': '50.95.109.194', 'end': '50.95.109.254'}], 'gateway_ip': '50.95.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.95.109.194', 'tags': [], 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa'}}
2025-04-17 10:28:00,068 - INFO - Created VN ctest-vn-48648250
2025-04-17 10:28:00,125 - DEBUG - VN ctest-vn-48648250 UUID is 3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:00,494 - DEBUG - Response for create_network : {'network': {'id': '53f2a77e-5b23-420b-91fc-b3e3fab72fc0', 'name': 'ctest-vn-91169390', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-91169390'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 10:28:00,682 - DEBUG - Response for create_subnet : {'subnet': {'id': '8deeec0e-4bb4-435e-a437-e3d67e4e1604', 'name': '', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'network_id': '53f2a77e-5b23-420b-91fc-b3e3fab72fc0', 'ip_version': 4, 'cidr': '37.93.8.192/26', 'allocation_pools': [{'start': '37.93.8.194', 'end': '37.93.8.254'}], 'gateway_ip': '37.93.8.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.93.8.194', 'tags': [], 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa'}}
2025-04-17 10:28:00,712 - INFO - Created VN ctest-vn-91169390
2025-04-17 10:28:00,769 - DEBUG - VN ctest-vn-91169390 UUID is 53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:00,911 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250, 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-27828936:ctest-vn-91169390, 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-04-17 10:28:01,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fac644e-2219-449d-ac38-eb7dcae777ff', 'name': 'ctest-vn-48648250', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ae920db-a155-4106-8e49-8ac3da169d84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-48648250'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330']], 'subnet_ipam': [{'subnet_cidr': '50.95.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 10:28:01,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53f2a77e-5b23-420b-91fc-b3e3fab72fc0', 'name': 'ctest-vn-91169390', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8deeec0e-4bb4-435e-a437-e3d67e4e1604'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-91169390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330']], 'subnet_ipam': [{'subnet_cidr': '37.93.8.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 10:28:01,705 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-17 10:28:02,044 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-17 10:28:02,099 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0
2025-04-17 10:28:02,118 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa
2025-04-17 10:28:02,217 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:02,232 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:02,244 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10
2025-04-17 10:28:02,256 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10
2025-04-17 10:28:02,270 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ba63de21-8fb0-4b4a-8702-438a1e8a36c8
2025-04-17 10:28:02,285 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 10:28:02,285 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:02,299 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10
2025-04-17 10:28:02,319 - INFO - Verified VN network id 7 for VN 3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:02,319 - INFO - Verifications in API Server for VN ctest-vn-48648250 passed
2025-04-17 10:28:02,319 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:02,332 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10
2025-04-17 10:28:02,342 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10
2025-04-17 10:28:02,351 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ba63de21-8fb0-4b4a-8702-438a1e8a36c8
2025-04-17 10:28:02,370 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27828936', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4588152407126000797', 'uuid-lslong': '12409927698727008255'}, 'enable': 'true', 'created': '2025-04-17T10:27:59', 'last-modified': '2025-04-17T10:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129977'}
2025-04-17 10:28:02,381 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 10:28:02,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48648250 passed
2025-04-17 10:28:02,382 - DEBUG - ====Verifying policy data for ctest-vn-48648250 in API_Server ======
2025-04-17 10:28:02,382 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-17 10:28:02,394 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0
2025-04-17 10:28:02,411 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa
2025-04-17 10:28:02,502 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff
2025-04-17 10:28:02,515 - DEBUG - ==>Verifying data for policy with id: 6259c836-a4a7-425d-bde8-2338bd6b26ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330']
2025-04-17 10:28:02,515 - INFO - VN ctest-vn-48648250 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 10:28:02,515 - DEBUG - Verifying the vn in opserver
2025-04-17 10:28:02,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250 virtual network link through opserver 10.0.0.242
2025-04-17 10:28:02,516 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-04-17 10:28:02,841 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-04-17 10:28:02,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250?flat'}
2025-04-17 10:28:02,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250 is found in opserver
2025-04-17 10:28:02,947 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 10:28:02,954 - DEBUG - VRF ids for VN ctest-vn-48648250: {}
2025-04-17 10:28:02,954 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-17 10:28:02,963 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0
2025-04-17 10:28:02,984 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa
2025-04-17 10:28:03,075 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:03,094 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:03,111 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109
2025-04-17 10:28:03,123 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109
2025-04-17 10:28:03,135 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/24187485-1df5-4af6-b674-3680842c4d27
2025-04-17 10:28:03,149 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 10:28:03,149 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:03,164 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109
2025-04-17 10:28:03,187 - INFO - Verified VN network id 8 for VN 53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:03,187 - INFO - Verifications in API Server for VN ctest-vn-91169390 passed
2025-04-17 10:28:03,187 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:03,203 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109
2025-04-17 10:28:03,214 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109
2025-04-17 10:28:03,226 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/24187485-1df5-4af6-b674-3680842c4d27
2025-04-17 10:28:03,245 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27828936', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6049081410648752651', 'uuid-lslong': '10519480621375893440'}, 'enable': 'true', 'created': '2025-04-17T10:28:00', 'last-modified': '2025-04-17T10:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.746189'}
2025-04-17 10:28:03,254 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 10:28:03,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91169390 passed
2025-04-17 10:28:03,254 - DEBUG - ====Verifying policy data for ctest-vn-91169390 in API_Server ======
2025-04-17 10:28:03,254 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-17 10:28:03,263 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0
2025-04-17 10:28:03,282 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa
2025-04-17 10:28:03,373 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0
2025-04-17 10:28:03,386 - DEBUG - ==>Verifying data for policy with id: 6259c836-a4a7-425d-bde8-2338bd6b26ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330']
2025-04-17 10:28:03,386 - INFO - VN ctest-vn-91169390 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 10:28:03,386 - DEBUG - Verifying the vn in opserver
2025-04-17 10:28:03,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390 virtual network link through opserver 10.0.0.242
2025-04-17 10:28:03,387 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-04-17 10:28:03,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390?flat'}
2025-04-17 10:28:03,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390 is found in opserver
2025-04-17 10:28:03,416 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 10:28:03,424 - DEBUG - VRF ids for VN ctest-vn-91169390: {}
2025-04-17 10:28:03,512 - DEBUG - Services list from nova: [