2025-08-15 09:37:29,200 - INFO - Domain Default found not creating
2025-08-15 09:37:29,345 - INFO - Project ctest-TestBasicPolicy-39593306 not found, creating it
2025-08-15 09:37:29,786 - INFO - Created Project:ctest-TestBasicPolicy-39593306, ID : fe974a78-2397-4089-bae1-8c4d6e8d0a58
2025-08-15 09:37:31,116 - INFO - ================================================================================
2025-08-15 09:37:31,117 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 09:37:31,117 - 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-15 09:37:31,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.129': '0'}} with
2025-08-15 09:37:31,376 - INFO - Initial checks done. Running the testcase now
2025-08-15 09:37:31,376 - INFO -
2025-08-15 09:37:31,903 - DEBUG - Response for create_network : {'network': {'id': '4e8473b8-4461-45a5-9320-381f53398904', 'name': 'ctest-vn-40320538', 'tenant_id': 'fe974a7823974089bae18c4d6e8d0a58', 'project_id': 'fe974a7823974089bae18c4d6e8d0a58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-vn-40320538'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:37:32,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d714fe5-4054-43fa-a2c2-e002c8ab4cee', 'name': '', 'tenant_id': 'fe974a7823974089bae18c4d6e8d0a58', 'network_id': '4e8473b8-4461-45a5-9320-381f53398904', 'ip_version': 4, 'cidr': '32.240.251.128/26', 'allocation_pools': [{'start': '32.240.251.130', 'end': '32.240.251.190'}], 'gateway_ip': '32.240.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.240.251.130', 'tags': [], 'project_id': 'fe974a7823974089bae18c4d6e8d0a58'}}
2025-08-15 09:37:32,070 - INFO - Created VN ctest-vn-40320538
2025-08-15 09:37:32,122 - DEBUG - VN ctest-vn-40320538 UUID is 4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:32,441 - DEBUG - Response for create_network : {'network': {'id': '32e9d5e4-e8c7-4c49-97e8-360fbc02868b', 'name': 'ctest-vn-02693467', 'tenant_id': 'fe974a7823974089bae18c4d6e8d0a58', 'project_id': 'fe974a7823974089bae18c4d6e8d0a58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-vn-02693467'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:37:32,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a0e3b6d-543d-4aca-bf58-83cea9aaf918', 'name': '', 'tenant_id': 'fe974a7823974089bae18c4d6e8d0a58', 'network_id': '32e9d5e4-e8c7-4c49-97e8-360fbc02868b', 'ip_version': 4, 'cidr': '147.60.164.128/26', 'allocation_pools': [{'start': '147.60.164.130', 'end': '147.60.164.190'}], 'gateway_ip': '147.60.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.60.164.130', 'tags': [], 'project_id': 'fe974a7823974089bae18c4d6e8d0a58'}}
2025-08-15 09:37:32,669 - INFO - Created VN ctest-vn-02693467
2025-08-15 09:37:32,722 - DEBUG - VN ctest-vn-02693467 UUID is 32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:32,878 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-40320538, 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-39593306:ctest-vn-02693467, 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-15 09:37:33,159 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e8473b8-4461-45a5-9320-381f53398904', 'name': 'ctest-vn-40320538', 'tenant_id': 'fe974a7823974089bae18c4d6e8d0a58', 'project_id': 'fe974a7823974089bae18c4d6e8d0a58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d714fe5-4054-43fa-a2c2-e002c8ab4cee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-vn-40320538'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-policy-allow-all-99402523']], 'subnet_ipam': [{'subnet_cidr': '32.240.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:37:33,390 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32e9d5e4-e8c7-4c49-97e8-360fbc02868b', 'name': 'ctest-vn-02693467', 'tenant_id': 'fe974a7823974089bae18c4d6e8d0a58', 'project_id': 'fe974a7823974089bae18c4d6e8d0a58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a0e3b6d-543d-4aca-bf58-83cea9aaf918'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-vn-02693467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-policy-allow-all-99402523']], 'subnet_ipam': [{'subnet_cidr': '147.60.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:37:33,558 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-15 09:37:33,848 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-15 09:37:33,874 - DEBUG - Requesting: http://10.0.0.41:8082/domain/49aa4ce0-7fff-469c-a8e7-8aa08626eb89
2025-08-15 09:37:33,886 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe974a78-2397-4089-bae1-8c4d6e8d0a58
2025-08-15 09:37:33,967 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:33,978 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:33,986 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/321b4294-bc0c-4fa6-a2a0-3e0467f6d82c
2025-08-15 09:37:33,991 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/321b4294-bc0c-4fa6-a2a0-3e0467f6d82c
2025-08-15 09:37:33,997 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c34fad4b-221a-435d-a6a0-8289d86a62c4
2025-08-15 09:37:34,002 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 09:37:34,002 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:34,009 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/321b4294-bc0c-4fa6-a2a0-3e0467f6d82c
2025-08-15 09:37:34,020 - INFO - Verified VN network id 12 for VN 4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:34,020 - INFO - Verifications in API Server for VN ctest-vn-40320538 passed
2025-08-15 09:37:34,020 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:34,028 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/321b4294-bc0c-4fa6-a2a0-3e0467f6d82c
2025-08-15 09:37:34,033 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/321b4294-bc0c-4fa6-a2a0-3e0467f6d82c
2025-08-15 09:37:34,039 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c34fad4b-221a-435d-a6a0-8289d86a62c4
2025-08-15 09:37:34,048 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-40320538', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39593306', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5657774267142587813', 'uuid-lslong': '10601535230021568772'}, 'enable': 'true', 'created': '2025-08-15T09:37:31', 'last-modified': '2025-08-15T09:37:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897635'}
2025-08-15 09:37:34,057 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 09:37:34,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40320538 passed
2025-08-15 09:37:34,057 - DEBUG - ====Verifying policy data for ctest-vn-40320538 in API_Server ======
2025-08-15 09:37:34,057 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-15 09:37:34,065 - DEBUG - Requesting: http://10.0.0.41:8082/domain/49aa4ce0-7fff-469c-a8e7-8aa08626eb89
2025-08-15 09:37:34,075 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe974a78-2397-4089-bae1-8c4d6e8d0a58
2025-08-15 09:37:34,148 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4e8473b8-4461-45a5-9320-381f53398904
2025-08-15 09:37:34,158 - DEBUG - ==>Verifying data for policy with id: d5a9b371-68c5-4a66-a8f7-3892027d7a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-policy-allow-all-99402523']
2025-08-15 09:37:34,158 - INFO - VN ctest-vn-40320538 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 09:37:34,159 - DEBUG - Verifying the vn in opserver
2025-08-15 09:37:34,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-40320538 virtual network link through opserver 10.0.0.41
2025-08-15 09:37:34,159 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-15 09:37:34,447 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-15 09:37:34,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-40320538', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-40320538?flat'}
2025-08-15 09:37:34,499 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-40320538 is found in opserver
2025-08-15 09:37:34,508 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 09:37:34,512 - DEBUG - VRF ids for VN ctest-vn-40320538: {}
2025-08-15 09:37:34,513 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-15 09:37:34,517 - DEBUG - Requesting: http://10.0.0.41:8082/domain/49aa4ce0-7fff-469c-a8e7-8aa08626eb89
2025-08-15 09:37:34,527 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe974a78-2397-4089-bae1-8c4d6e8d0a58
2025-08-15 09:37:34,596 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:34,607 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:34,615 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe19f47f-e00d-470f-9342-291588222fcb
2025-08-15 09:37:34,621 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe19f47f-e00d-470f-9342-291588222fcb
2025-08-15 09:37:34,627 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/72834fa9-7f8d-4485-8c8a-06dc81f2bfba
2025-08-15 09:37:34,632 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 09:37:34,632 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:34,640 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe19f47f-e00d-470f-9342-291588222fcb
2025-08-15 09:37:34,652 - INFO - Verified VN network id 13 for VN 32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:34,652 - INFO - Verifications in API Server for VN ctest-vn-02693467 passed
2025-08-15 09:37:34,652 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:34,660 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe19f47f-e00d-470f-9342-291588222fcb
2025-08-15 09:37:34,666 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe19f47f-e00d-470f-9342-291588222fcb
2025-08-15 09:37:34,672 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/72834fa9-7f8d-4485-8c8a-06dc81f2bfba
2025-08-15 09:37:34,682 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-02693467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39593306', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3668698550604614729', 'uuid-lslong': '10946058335530681995'}, 'enable': 'true', 'created': '2025-08-15T09:37:32', 'last-modified': '2025-08-15T09:37:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318199'}
2025-08-15 09:37:34,687 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 09:37:34,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02693467 passed
2025-08-15 09:37:34,687 - DEBUG - ====Verifying policy data for ctest-vn-02693467 in API_Server ======
2025-08-15 09:37:34,687 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-15 09:37:34,692 - DEBUG - Requesting: http://10.0.0.41:8082/domain/49aa4ce0-7fff-469c-a8e7-8aa08626eb89
2025-08-15 09:37:34,701 - DEBUG - Requesting: http://10.0.0.41:8082/project/fe974a78-2397-4089-bae1-8c4d6e8d0a58
2025-08-15 09:37:34,769 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/32e9d5e4-e8c7-4c49-97e8-360fbc02868b
2025-08-15 09:37:34,777 - DEBUG - ==>Verifying data for policy with id: d5a9b371-68c5-4a66-a8f7-3892027d7a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-39593306', 'ctest-policy-allow-all-99402523']
2025-08-15 09:37:34,777 - INFO - VN ctest-vn-02693467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 09:37:34,777 - DEBUG - Verifying the vn in opserver
2025-08-15 09:37:34,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-02693467 virtual network link through opserver 10.0.0.41
2025-08-15 09:37:34,777 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-15 09:37:34,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-02693467', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-02693467?flat'}
2025-08-15 09:37:34,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39593306:ctest-vn-02693467 is found in opserver
2025-08-15 09:37:34,794 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 09:37:34,798 - DEBUG - VRF ids for VN ctest-vn-02693467: {}
2025-08-15 09:37:34,849 - DEBUG - Services list from nova: [