2025-06-05 02:00:41,765 - INFO - Reading existing Domain with UUID 92c00774-2743-4ed5-87aa-ed783cf65c82
2025-06-05 02:00:41,780 - INFO - Using existing domain ['admin_domain'](92c00774-2743-4ed5-87aa-ed783cf65c82)
2025-06-05 02:00:42,008 - INFO - Project ctest-TestBasicPolicy-22662393 not found, creating it
2025-06-05 02:00:42,565 - INFO - Created Project:ctest-TestBasicPolicy-22662393, ID : 1e103f0c-1d12-4354-8051-7a578f666e89
2025-06-05 02:00:44,431 - INFO - ================================================================================
2025-06-05 02:00:44,431 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-05 02:00:44,432 - 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-05 02:00:44,823 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-06-05 02:00:44,824 - INFO - Initial checks done. Running the testcase now
2025-06-05 02:00:44,824 - INFO -
2025-06-05 02:00:45,655 - DEBUG - Response for create_network : {'network': {'id': '9abe87f4-a6eb-4192-871f-df5c50c46495', 'name': 'ctest-vn-54593953', 'tenant_id': '1e103f0c1d12435480517a578f666e89', 'project_id': '1e103f0c1d12435480517a578f666e89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-vn-54593953'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-06-05 02:00:45,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b0640dc-2894-4490-a4df-6bbe2acca01e', 'name': '', 'tenant_id': '1e103f0c1d12435480517a578f666e89', 'network_id': '9abe87f4-a6eb-4192-871f-df5c50c46495', 'ip_version': 4, 'cidr': '112.28.101.0/26', 'allocation_pools': [{'start': '112.28.101.2', 'end': '112.28.101.62'}], 'gateway_ip': '112.28.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-05T02:00:45.822724', 'updated_at': '2025-06-05T02:00:45.822724', 'dns_server_address': '112.28.101.2', 'tags': [], 'project_id': '1e103f0c1d12435480517a578f666e89'}}
2025-06-05 02:00:45,997 - INFO - Created VN ctest-vn-54593953
2025-06-05 02:00:46,054 - DEBUG - VN ctest-vn-54593953 UUID is 9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:46,598 - DEBUG - Response for create_network : {'network': {'id': '119a3f33-cf1f-4788-9e07-e56a2ed2726f', 'name': 'ctest-vn-12370613', 'tenant_id': '1e103f0c1d12435480517a578f666e89', 'project_id': '1e103f0c1d12435480517a578f666e89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-vn-12370613'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-06-05 02:00:46,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b83ef529-2f3d-4ccb-85e8-02ed5e72f07d', 'name': '', 'tenant_id': '1e103f0c1d12435480517a578f666e89', 'network_id': '119a3f33-cf1f-4788-9e07-e56a2ed2726f', 'ip_version': 4, 'cidr': '4.139.170.0/26', 'allocation_pools': [{'start': '4.139.170.2', 'end': '4.139.170.62'}], 'gateway_ip': '4.139.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-05T02:00:46.773697', 'updated_at': '2025-06-05T02:00:46.773697', 'dns_server_address': '4.139.170.2', 'tags': [], 'project_id': '1e103f0c1d12435480517a578f666e89'}}
2025-06-05 02:00:46,953 - INFO - Created VN ctest-vn-12370613
2025-06-05 02:00:47,010 - DEBUG - VN ctest-vn-12370613 UUID is 119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:47,239 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-54593953, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-12370613, 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-05 02:00:47,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9abe87f4-a6eb-4192-871f-df5c50c46495', 'name': 'ctest-vn-54593953', 'tenant_id': '1e103f0c1d12435480517a578f666e89', 'project_id': '1e103f0c1d12435480517a578f666e89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b0640dc-2894-4490-a4df-6bbe2acca01e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-vn-54593953'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-policy-allow-all-52590627']], 'subnet_ipam': [{'subnet_cidr': '112.28.101.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-05T02:00:45.566819', 'updated_at': '2025-06-05T02:00:45.839276'}}
2025-06-05 02:00:48,034 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '119a3f33-cf1f-4788-9e07-e56a2ed2726f', 'name': 'ctest-vn-12370613', 'tenant_id': '1e103f0c1d12435480517a578f666e89', 'project_id': '1e103f0c1d12435480517a578f666e89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b83ef529-2f3d-4ccb-85e8-02ed5e72f07d'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-vn-12370613'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-policy-allow-all-52590627']], 'subnet_ipam': [{'subnet_cidr': '4.139.170.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-05T02:00:46.518081', 'updated_at': '2025-06-05T02:00:46.789847'}}
2025-06-05 02:00:48,278 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-05 02:00:48,644 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-05 02:00:48,731 - DEBUG - Requesting: https://10.0.0.33:8082/domain/92c00774-2743-4ed5-87aa-ed783cf65c82
2025-06-05 02:00:48,791 - DEBUG - Requesting: https://10.0.0.33:8082/project/1e103f0c-1d12-4354-8051-7a578f666e89
2025-06-05 02:00:48,880 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:48,940 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:49,000 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a862155d-7c47-45b7-aa88-ffb97b97d158
2025-06-05 02:00:49,055 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a862155d-7c47-45b7-aa88-ffb97b97d158
2025-06-05 02:00:49,111 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/bd69d946-dec8-42c6-b2bb-d06b1a298e3b
2025-06-05 02:00:49,171 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:00:49,171 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:49,229 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a862155d-7c47-45b7-aa88-ffb97b97d158
2025-06-05 02:00:49,297 - INFO - Verified VN network id 7 for VN 9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:49,297 - INFO - Verifications in API Server for VN ctest-vn-54593953 passed
2025-06-05 02:00:49,297 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:49,357 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a862155d-7c47-45b7-aa88-ffb97b97d158
2025-06-05 02:00:49,411 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/a862155d-7c47-45b7-aa88-ffb97b97d158
2025-06-05 02:00:49,467 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/bd69d946-dec8-42c6-b2bb-d06b1a298e3b
2025-06-05 02:00:49,579 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-54593953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22662393', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11150499212258132370', 'uuid-lslong': '9736746506983335061'}, 'enable': 'true', 'created': '2025-06-05T02:00:45', 'last-modified': '2025-06-05T02:00:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.939824'}
2025-06-05 02:00:49,632 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:00:49,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54593953 passed
2025-06-05 02:00:49,632 - DEBUG - ====Verifying policy data for ctest-vn-54593953 in API_Server ======
2025-06-05 02:00:49,633 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-05 02:00:49,687 - DEBUG - Requesting: https://10.0.0.33:8082/domain/92c00774-2743-4ed5-87aa-ed783cf65c82
2025-06-05 02:00:49,751 - DEBUG - Requesting: https://10.0.0.33:8082/project/1e103f0c-1d12-4354-8051-7a578f666e89
2025-06-05 02:00:49,832 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/9abe87f4-a6eb-4192-871f-df5c50c46495
2025-06-05 02:00:49,888 - DEBUG - ==>Verifying data for policy with id: 67e3f19a-acc5-4f6a-aab0-7d993c45d1a9, fqn: ['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-policy-allow-all-52590627']
2025-06-05 02:00:49,888 - INFO - VN ctest-vn-54593953 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:00:49,888 - DEBUG - Verifying the vn in opserver
2025-06-05 02:00:49,888 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-54593953 virtual network link through opserver 10.0.0.33
2025-06-05 02:00:49,888 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-05 02:00:50,253 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-05 02:00:50,383 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-54593953', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-54593953?flat'}
2025-06-05 02:00:50,383 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-54593953 is found in opserver
2025-06-05 02:00:50,490 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:00:50,542 - DEBUG - VRF ids for VN ctest-vn-54593953: {}
2025-06-05 02:00:50,543 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-05 02:00:50,594 - DEBUG - Requesting: https://10.0.0.33:8082/domain/92c00774-2743-4ed5-87aa-ed783cf65c82
2025-06-05 02:00:50,655 - DEBUG - Requesting: https://10.0.0.33:8082/project/1e103f0c-1d12-4354-8051-7a578f666e89
2025-06-05 02:00:50,739 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:50,800 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:50,864 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/328d8410-987b-4455-ac05-0f4f7934631a
2025-06-05 02:00:50,920 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/328d8410-987b-4455-ac05-0f4f7934631a
2025-06-05 02:00:50,975 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/820f7cae-708b-43aa-bc8c-1bda1b17bf82
2025-06-05 02:00:51,031 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:00:51,031 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:51,088 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/328d8410-987b-4455-ac05-0f4f7934631a
2025-06-05 02:00:51,158 - INFO - Verified VN network id 8 for VN 119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:51,159 - INFO - Verifications in API Server for VN ctest-vn-12370613 passed
2025-06-05 02:00:51,159 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:51,216 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/328d8410-987b-4455-ac05-0f4f7934631a
2025-06-05 02:00:51,271 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/328d8410-987b-4455-ac05-0f4f7934631a
2025-06-05 02:00:51,327 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/820f7cae-708b-43aa-bc8c-1bda1b17bf82
2025-06-05 02:00:51,439 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-12370613', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22662393', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1268395736809031560', 'uuid-lslong': '11387322427044426351'}, 'enable': 'true', 'created': '2025-06-05T02:00:46', 'last-modified': '2025-06-05T02:00:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.431264'}
2025-06-05 02:00:51,492 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:00:51,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12370613 passed
2025-06-05 02:00:51,492 - DEBUG - ====Verifying policy data for ctest-vn-12370613 in API_Server ======
2025-06-05 02:00:51,493 - DEBUG - Requesting: https://10.0.0.33:8082/domains
2025-06-05 02:00:51,550 - DEBUG - Requesting: https://10.0.0.33:8082/domain/92c00774-2743-4ed5-87aa-ed783cf65c82
2025-06-05 02:00:51,615 - DEBUG - Requesting: https://10.0.0.33:8082/project/1e103f0c-1d12-4354-8051-7a578f666e89
2025-06-05 02:00:51,704 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/119a3f33-cf1f-4788-9e07-e56a2ed2726f
2025-06-05 02:00:51,764 - DEBUG - ==>Verifying data for policy with id: 67e3f19a-acc5-4f6a-aab0-7d993c45d1a9, fqn: ['admin_domain', 'ctest-TestBasicPolicy-22662393', 'ctest-policy-allow-all-52590627']
2025-06-05 02:00:51,764 - INFO - VN ctest-vn-12370613 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:00:51,764 - DEBUG - Verifying the vn in opserver
2025-06-05 02:00:51,764 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-12370613 virtual network link through opserver 10.0.0.33
2025-06-05 02:00:51,764 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-05 02:00:51,823 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-12370613', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-12370613?flat'}
2025-06-05 02:00:51,823 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-22662393:ctest-vn-12370613 is found in opserver
2025-06-05 02:00:51,926 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:00:51,979 - DEBUG - VRF ids for VN ctest-vn-12370613: {}
2025-06-05 02:00:52,052 - DEBUG - Services list from nova: [