2025-10-15 14:31:15,068 - INFO - Domain Default found not creating
2025-10-15 14:31:15,197 - INFO - Project ctest-TestBasicPolicy-07792832 not found, creating it
2025-10-15 14:31:15,616 - INFO - Created Project:ctest-TestBasicPolicy-07792832, ID : 9fa03a05-838a-4445-b4b0-bb5619c91384
2025-10-15 14:31:16,966 - INFO - ================================================================================
2025-10-15 14:31:16,966 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-15 14:31:16,966 - 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-15 14:31:17,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.249': '0'}} with
2025-10-15 14:31:17,220 - INFO - Initial checks done. Running the testcase now
2025-10-15 14:31:17,220 - INFO -
2025-10-15 14:31:17,766 - DEBUG - Response for create_network : {'network': {'id': 'bf338091-96a5-4280-9eb6-d6e05d73e129', 'name': 'ctest-vn-66888005', 'tenant_id': '9fa03a05838a4445b4b0bb5619c91384', 'project_id': '9fa03a05838a4445b4b0bb5619c91384', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-vn-66888005'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 14:31:17,967 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd56693a5-3b4a-459c-8e42-e195a0c70f33', 'name': '', 'tenant_id': '9fa03a05838a4445b4b0bb5619c91384', 'network_id': 'bf338091-96a5-4280-9eb6-d6e05d73e129', 'ip_version': 4, 'cidr': '169.156.240.192/26', 'allocation_pools': [{'start': '169.156.240.194', 'end': '169.156.240.254'}], 'gateway_ip': '169.156.240.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.156.240.194', 'tags': [], 'project_id': '9fa03a05838a4445b4b0bb5619c91384'}}
2025-10-15 14:31:17,983 - INFO - Created VN ctest-vn-66888005
2025-10-15 14:31:18,036 - DEBUG - VN ctest-vn-66888005 UUID is bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:18,326 - DEBUG - Response for create_network : {'network': {'id': '6535d2a8-80f9-443c-856c-4a84a32b2145', 'name': 'ctest-vn-95784642', 'tenant_id': '9fa03a05838a4445b4b0bb5619c91384', 'project_id': '9fa03a05838a4445b4b0bb5619c91384', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-vn-95784642'], 'port_security_enabled': True, 'description': ''}}
2025-10-15 14:31:18,484 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a9cffb0-1121-43d0-8aac-63e261cb7bbb', 'name': '', 'tenant_id': '9fa03a05838a4445b4b0bb5619c91384', 'network_id': '6535d2a8-80f9-443c-856c-4a84a32b2145', 'ip_version': 4, 'cidr': '6.120.199.192/26', 'allocation_pools': [{'start': '6.120.199.194', 'end': '6.120.199.254'}], 'gateway_ip': '6.120.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.120.199.194', 'tags': [], 'project_id': '9fa03a05838a4445b4b0bb5619c91384'}}
2025-10-15 14:31:18,500 - INFO - Created VN ctest-vn-95784642
2025-10-15 14:31:18,551 - DEBUG - VN ctest-vn-95784642 UUID is 6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:18,699 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-66888005, 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-07792832:ctest-vn-95784642, 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-15 14:31:18,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf338091-96a5-4280-9eb6-d6e05d73e129', 'name': 'ctest-vn-66888005', 'tenant_id': '9fa03a05838a4445b4b0bb5619c91384', 'project_id': '9fa03a05838a4445b4b0bb5619c91384', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d56693a5-3b4a-459c-8e42-e195a0c70f33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-vn-66888005'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-policy-allow-all-38923690']], 'subnet_ipam': [{'subnet_cidr': '169.156.240.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 14:31:19,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6535d2a8-80f9-443c-856c-4a84a32b2145', 'name': 'ctest-vn-95784642', 'tenant_id': '9fa03a05838a4445b4b0bb5619c91384', 'project_id': '9fa03a05838a4445b4b0bb5619c91384', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a9cffb0-1121-43d0-8aac-63e261cb7bbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-vn-95784642'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-policy-allow-all-38923690']], 'subnet_ipam': [{'subnet_cidr': '6.120.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-15 14:31:19,363 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 14:31:19,654 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 14:31:19,680 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d5f2d9d9-849d-45ef-8566-3a20003be141
2025-10-15 14:31:19,691 - DEBUG - Requesting: http://10.0.0.27:8082/project/9fa03a05-838a-4445-b4b0-bb5619c91384
2025-10-15 14:31:19,760 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:19,770 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:19,778 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06f67855-e663-4183-a5c7-7b0b999360b2
2025-10-15 14:31:19,784 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06f67855-e663-4183-a5c7-7b0b999360b2
2025-10-15 14:31:19,789 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/60a7041b-f728-4483-b6bb-14699e92d614
2025-10-15 14:31:19,795 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 14:31:19,795 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:19,802 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06f67855-e663-4183-a5c7-7b0b999360b2
2025-10-15 14:31:19,815 - INFO - Verified VN network id 12 for VN bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:19,815 - INFO - Verifications in API Server for VN ctest-vn-66888005 passed
2025-10-15 14:31:19,815 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:19,823 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06f67855-e663-4183-a5c7-7b0b999360b2
2025-10-15 14:31:19,829 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/06f67855-e663-4183-a5c7-7b0b999360b2
2025-10-15 14:31:19,836 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/60a7041b-f728-4483-b6bb-14699e92d614
2025-10-15 14:31:19,847 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-66888005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07792832', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13777497047842505344', 'uuid-lslong': '11436564562882847017'}, 'enable': 'true', 'created': '2025-10-15T14:31:17', 'last-modified': '2025-10-15T14:31:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884516'}
2025-10-15 14:31:19,853 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-15 14:31:19,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66888005 passed
2025-10-15 14:31:19,854 - DEBUG - ====Verifying policy data for ctest-vn-66888005 in API_Server ======
2025-10-15 14:31:19,854 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 14:31:19,859 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d5f2d9d9-849d-45ef-8566-3a20003be141
2025-10-15 14:31:19,869 - DEBUG - Requesting: http://10.0.0.27:8082/project/9fa03a05-838a-4445-b4b0-bb5619c91384
2025-10-15 14:31:19,940 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bf338091-96a5-4280-9eb6-d6e05d73e129
2025-10-15 14:31:19,950 - DEBUG - ==>Verifying data for policy with id: 8d3a22cb-4259-446d-af54-8a2b74512402, fqn: ['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-policy-allow-all-38923690']
2025-10-15 14:31:19,951 - INFO - VN ctest-vn-66888005 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 14:31:19,951 - DEBUG - Verifying the vn in opserver
2025-10-15 14:31:19,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-66888005 virtual network link through opserver 10.0.0.27
2025-10-15 14:31:19,951 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-15 14:31:20,247 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-15 14:31:20,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-66888005', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-66888005?flat'}
2025-10-15 14:31:20,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-66888005 is found in opserver
2025-10-15 14:31:20,306 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 14:31:20,310 - DEBUG - VRF ids for VN ctest-vn-66888005: {}
2025-10-15 14:31:20,310 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 14:31:20,315 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d5f2d9d9-849d-45ef-8566-3a20003be141
2025-10-15 14:31:20,326 - DEBUG - Requesting: http://10.0.0.27:8082/project/9fa03a05-838a-4445-b4b0-bb5619c91384
2025-10-15 14:31:20,399 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:20,411 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:20,421 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b1a91d80-f615-481a-86f1-3e7afcc1c4a2
2025-10-15 14:31:20,428 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b1a91d80-f615-481a-86f1-3e7afcc1c4a2
2025-10-15 14:31:20,436 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/baba78ae-b7ed-4174-8c60-96187dbe5fef
2025-10-15 14:31:20,443 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 14:31:20,443 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:20,454 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b1a91d80-f615-481a-86f1-3e7afcc1c4a2
2025-10-15 14:31:20,467 - INFO - Verified VN network id 13 for VN 6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:20,467 - INFO - Verifications in API Server for VN ctest-vn-95784642 passed
2025-10-15 14:31:20,467 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:20,476 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b1a91d80-f615-481a-86f1-3e7afcc1c4a2
2025-10-15 14:31:20,482 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/b1a91d80-f615-481a-86f1-3e7afcc1c4a2
2025-10-15 14:31:20,488 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/baba78ae-b7ed-4174-8c60-96187dbe5fef
2025-10-15 14:31:20,498 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-95784642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07792832', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7292966792756544572', 'uuid-lslong': '9614141238062817605'}, 'enable': 'true', 'created': '2025-10-15T14:31:18', 'last-modified': '2025-10-15T14:31:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.309660'}
2025-10-15 14:31:20,503 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-15 14:31:20,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95784642 passed
2025-10-15 14:31:20,503 - DEBUG - ====Verifying policy data for ctest-vn-95784642 in API_Server ======
2025-10-15 14:31:20,503 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-15 14:31:20,509 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d5f2d9d9-849d-45ef-8566-3a20003be141
2025-10-15 14:31:20,518 - DEBUG - Requesting: http://10.0.0.27:8082/project/9fa03a05-838a-4445-b4b0-bb5619c91384
2025-10-15 14:31:20,589 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6535d2a8-80f9-443c-856c-4a84a32b2145
2025-10-15 14:31:20,598 - DEBUG - ==>Verifying data for policy with id: 8d3a22cb-4259-446d-af54-8a2b74512402, fqn: ['default-domain', 'ctest-TestBasicPolicy-07792832', 'ctest-policy-allow-all-38923690']
2025-10-15 14:31:20,598 - INFO - VN ctest-vn-95784642 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-15 14:31:20,598 - DEBUG - Verifying the vn in opserver
2025-10-15 14:31:20,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-95784642 virtual network link through opserver 10.0.0.27
2025-10-15 14:31:20,598 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-15 14:31:20,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-95784642', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-95784642?flat'}
2025-10-15 14:31:20,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07792832:ctest-vn-95784642 is found in opserver
2025-10-15 14:31:20,615 - DEBUG - Do not have enough data to verify VN in agent
2025-10-15 14:31:20,620 - DEBUG - VRF ids for VN ctest-vn-95784642: {}
2025-10-15 14:31:20,676 - DEBUG - Services list from nova: [