2025-11-10 12:05:47,996 - INFO - Domain Default found not creating
2025-11-10 12:05:48,164 - INFO - Project ctest-TestBasicPolicy-89970226 not found, creating it
2025-11-10 12:05:48,622 - INFO - Created Project:ctest-TestBasicPolicy-89970226, ID : 0c841655-209b-4aef-8af4-28f2c6373eee
2025-11-10 12:05:50,072 - INFO - ================================================================================
2025-11-10 12:05:50,072 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 12:05:50,072 - 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-11-10 12:05:50,325 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-11-10 12:05:50,325 - INFO - Initial checks done. Running the testcase now
2025-11-10 12:05:50,325 - INFO -
2025-11-10 12:05:50,889 - DEBUG - Response for create_network : {'network': {'id': '390161a3-9756-407b-bc92-1bb580e8121d', 'name': 'ctest-vn-02005916', 'tenant_id': '0c841655209b4aef8af428f2c6373eee', 'project_id': '0c841655209b4aef8af428f2c6373eee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-vn-02005916'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 12:05:51,105 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d636783-7807-4c2e-a230-a019a5ec06b2', 'name': '', 'tenant_id': '0c841655209b4aef8af428f2c6373eee', 'network_id': '390161a3-9756-407b-bc92-1bb580e8121d', 'ip_version': 4, 'cidr': '47.170.248.128/26', 'allocation_pools': [{'start': '47.170.248.130', 'end': '47.170.248.190'}], 'gateway_ip': '47.170.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.170.248.130', 'tags': [], 'project_id': '0c841655209b4aef8af428f2c6373eee'}}
2025-11-10 12:05:51,126 - INFO - Created VN ctest-vn-02005916
2025-11-10 12:05:51,179 - DEBUG - VN ctest-vn-02005916 UUID is 390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:51,489 - DEBUG - Response for create_network : {'network': {'id': '0b6acfee-e786-4ed9-b600-820c3dd86abf', 'name': 'ctest-vn-43517779', 'tenant_id': '0c841655209b4aef8af428f2c6373eee', 'project_id': '0c841655209b4aef8af428f2c6373eee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-vn-43517779'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 12:05:51,705 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c86169a0-f59a-43ca-9693-e6a92b67ddbb', 'name': '', 'tenant_id': '0c841655209b4aef8af428f2c6373eee', 'network_id': '0b6acfee-e786-4ed9-b600-820c3dd86abf', 'ip_version': 4, 'cidr': '72.92.36.0/26', 'allocation_pools': [{'start': '72.92.36.2', 'end': '72.92.36.62'}], 'gateway_ip': '72.92.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.92.36.2', 'tags': [], 'project_id': '0c841655209b4aef8af428f2c6373eee'}}
2025-11-10 12:05:51,727 - INFO - Created VN ctest-vn-43517779
2025-11-10 12:05:51,787 - DEBUG - VN ctest-vn-43517779 UUID is 0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:51,911 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-02005916, 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-89970226:ctest-vn-43517779, 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-11-10 12:05:52,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '390161a3-9756-407b-bc92-1bb580e8121d', 'name': 'ctest-vn-02005916', 'tenant_id': '0c841655209b4aef8af428f2c6373eee', 'project_id': '0c841655209b4aef8af428f2c6373eee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d636783-7807-4c2e-a230-a019a5ec06b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-vn-02005916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-policy-allow-all-28660070']], 'subnet_ipam': [{'subnet_cidr': '47.170.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 12:05:52,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b6acfee-e786-4ed9-b600-820c3dd86abf', 'name': 'ctest-vn-43517779', 'tenant_id': '0c841655209b4aef8af428f2c6373eee', 'project_id': '0c841655209b4aef8af428f2c6373eee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c86169a0-f59a-43ca-9693-e6a92b67ddbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-vn-43517779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-policy-allow-all-28660070']], 'subnet_ipam': [{'subnet_cidr': '72.92.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 12:05:52,635 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 12:05:52,938 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 12:05:52,970 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429
2025-11-10 12:05:52,982 - DEBUG - Requesting: http://10.0.0.33:8082/project/0c841655-209b-4aef-8af4-28f2c6373eee
2025-11-10 12:05:53,054 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:53,066 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:53,075 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dbac2523-ba35-4b97-bcc8-bebdb51e52dd
2025-11-10 12:05:53,083 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dbac2523-ba35-4b97-bcc8-bebdb51e52dd
2025-11-10 12:05:53,090 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c25d4ac4-0ff0-4486-b271-52b1b711f558
2025-11-10 12:05:53,098 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 12:05:53,098 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:53,107 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dbac2523-ba35-4b97-bcc8-bebdb51e52dd
2025-11-10 12:05:53,121 - INFO - Verified VN network id 11 for VN 390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:53,121 - INFO - Verifications in API Server for VN ctest-vn-02005916 passed
2025-11-10 12:05:53,122 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:53,130 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dbac2523-ba35-4b97-bcc8-bebdb51e52dd
2025-11-10 12:05:53,138 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/dbac2523-ba35-4b97-bcc8-bebdb51e52dd
2025-11-10 12:05:53,145 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c25d4ac4-0ff0-4486-b271-52b1b711f558
2025-11-10 12:05:53,157 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-02005916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89970226', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4107671690385178747', 'uuid-lslong': '13587953492095930909'}, 'enable': 'true', 'created': '2025-11-10T12:05:50', 'last-modified': '2025-11-10T12:05:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979251'}
2025-11-10 12:05:53,164 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 12:05:53,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02005916 passed
2025-11-10 12:05:53,164 - DEBUG - ====Verifying policy data for ctest-vn-02005916 in API_Server ======
2025-11-10 12:05:53,164 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 12:05:53,170 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429
2025-11-10 12:05:53,181 - DEBUG - Requesting: http://10.0.0.33:8082/project/0c841655-209b-4aef-8af4-28f2c6373eee
2025-11-10 12:05:53,252 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390161a3-9756-407b-bc92-1bb580e8121d
2025-11-10 12:05:53,262 - DEBUG - ==>Verifying data for policy with id: 1df47e1a-ccfc-4712-aed7-9a254ce64a83, fqn: ['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-policy-allow-all-28660070']
2025-11-10 12:05:53,262 - INFO - VN ctest-vn-02005916 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 12:05:53,262 - DEBUG - Verifying the vn in opserver
2025-11-10 12:05:53,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-02005916 virtual network link through opserver 10.0.0.33
2025-11-10 12:05:53,262 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-10 12:05:53,559 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-10 12:05:53,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-02005916', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-02005916?flat'}
2025-11-10 12:05:53,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-02005916 is found in opserver
2025-11-10 12:05:53,629 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 12:05:53,635 - DEBUG - VRF ids for VN ctest-vn-02005916: {}
2025-11-10 12:05:53,635 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 12:05:53,642 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429
2025-11-10 12:05:53,655 - DEBUG - Requesting: http://10.0.0.33:8082/project/0c841655-209b-4aef-8af4-28f2c6373eee
2025-11-10 12:05:53,723 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:53,734 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:53,743 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/deb70e62-edcc-4d6d-9590-1edc789d7598
2025-11-10 12:05:53,750 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/deb70e62-edcc-4d6d-9590-1edc789d7598
2025-11-10 12:05:53,757 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/29c21c82-c7ab-45b4-95a1-2b2d7771a707
2025-11-10 12:05:53,764 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 12:05:53,765 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:53,774 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/deb70e62-edcc-4d6d-9590-1edc789d7598
2025-11-10 12:05:53,788 - INFO - Verified VN network id 12 for VN 0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:53,788 - INFO - Verifications in API Server for VN ctest-vn-43517779 passed
2025-11-10 12:05:53,789 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:53,802 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/deb70e62-edcc-4d6d-9590-1edc789d7598
2025-11-10 12:05:53,809 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/deb70e62-edcc-4d6d-9590-1edc789d7598
2025-11-10 12:05:53,817 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/29c21c82-c7ab-45b4-95a1-2b2d7771a707
2025-11-10 12:05:53,830 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-43517779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89970226', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '822698506942041817', 'uuid-lslong': '13114625103991696063'}, 'enable': 'true', 'created': '2025-11-10T12:05:51', 'last-modified': '2025-11-10T12:05:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415662'}
2025-11-10 12:05:53,837 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 12:05:53,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43517779 passed
2025-11-10 12:05:53,838 - DEBUG - ====Verifying policy data for ctest-vn-43517779 in API_Server ======
2025-11-10 12:05:53,838 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 12:05:53,844 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429
2025-11-10 12:05:53,855 - DEBUG - Requesting: http://10.0.0.33:8082/project/0c841655-209b-4aef-8af4-28f2c6373eee
2025-11-10 12:05:53,924 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0b6acfee-e786-4ed9-b600-820c3dd86abf
2025-11-10 12:05:53,936 - DEBUG - ==>Verifying data for policy with id: 1df47e1a-ccfc-4712-aed7-9a254ce64a83, fqn: ['default-domain', 'ctest-TestBasicPolicy-89970226', 'ctest-policy-allow-all-28660070']
2025-11-10 12:05:53,936 - INFO - VN ctest-vn-43517779 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 12:05:53,936 - DEBUG - Verifying the vn in opserver
2025-11-10 12:05:53,936 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-43517779 virtual network link through opserver 10.0.0.33
2025-11-10 12:05:53,936 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-10 12:05:53,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-43517779', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-43517779?flat'}
2025-11-10 12:05:53,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89970226:ctest-vn-43517779 is found in opserver
2025-11-10 12:05:53,956 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 12:05:53,961 - DEBUG - VRF ids for VN ctest-vn-43517779: {}
2025-11-10 12:05:54,043 - DEBUG - Services list from nova: [