2025-04-28 11:10:36,439 - INFO - Domain Default found not creating
2025-04-28 11:10:36,589 - INFO - Project ctest-TestBasicPolicy-00492973 not found, creating it
2025-04-28 11:10:37,127 - INFO - Created Project:ctest-TestBasicPolicy-00492973, ID : 8a1f3749-5b0b-43f6-9569-5cdf4de0c644
2025-04-28 11:10:38,680 - INFO - ================================================================================
2025-04-28 11:10:38,680 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 11:10:38,680 - 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-28 11:10:38,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-28 11:10:38,941 - INFO - Initial checks done. Running the testcase now
2025-04-28 11:10:38,941 - INFO -
2025-04-28 11:10:39,540 - DEBUG - Response for create_network : {'network': {'id': '9d0780d5-318f-497c-b5af-debbb305b2db', 'name': 'ctest-vn-82894323', 'tenant_id': '8a1f37495b0b43f695695cdf4de0c644', 'project_id': '8a1f37495b0b43f695695cdf4de0c644', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-vn-82894323'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 11:10:39,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '72ddbe4f-e0fa-4f1c-9a0c-d64a40a10442', 'name': '', 'tenant_id': '8a1f37495b0b43f695695cdf4de0c644', 'network_id': '9d0780d5-318f-497c-b5af-debbb305b2db', 'ip_version': 4, 'cidr': '222.3.209.192/26', 'allocation_pools': [{'start': '222.3.209.194', 'end': '222.3.209.254'}], 'gateway_ip': '222.3.209.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.3.209.194', 'tags': [], 'project_id': '8a1f37495b0b43f695695cdf4de0c644'}}
2025-04-28 11:10:39,731 - INFO - Created VN ctest-vn-82894323
2025-04-28 11:10:39,782 - DEBUG - VN ctest-vn-82894323 UUID is 9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:40,061 - DEBUG - Response for create_network : {'network': {'id': '5a0f8e5c-81a2-4049-9895-57942e3c859e', 'name': 'ctest-vn-37779141', 'tenant_id': '8a1f37495b0b43f695695cdf4de0c644', 'project_id': '8a1f37495b0b43f695695cdf4de0c644', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-vn-37779141'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 11:10:40,214 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b97fa582-05b7-4cd9-bacc-449253153c5c', 'name': '', 'tenant_id': '8a1f37495b0b43f695695cdf4de0c644', 'network_id': '5a0f8e5c-81a2-4049-9895-57942e3c859e', 'ip_version': 4, 'cidr': '134.97.192.0/26', 'allocation_pools': [{'start': '134.97.192.2', 'end': '134.97.192.62'}], 'gateway_ip': '134.97.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.97.192.2', 'tags': [], 'project_id': '8a1f37495b0b43f695695cdf4de0c644'}}
2025-04-28 11:10:40,231 - INFO - Created VN ctest-vn-37779141
2025-04-28 11:10:40,282 - DEBUG - VN ctest-vn-37779141 UUID is 5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:40,434 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-82894323, 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-00492973:ctest-vn-37779141, 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-28 11:10:40,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d0780d5-318f-497c-b5af-debbb305b2db', 'name': 'ctest-vn-82894323', 'tenant_id': '8a1f37495b0b43f695695cdf4de0c644', 'project_id': '8a1f37495b0b43f695695cdf4de0c644', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72ddbe4f-e0fa-4f1c-9a0c-d64a40a10442'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-vn-82894323'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-policy-allow-all-76660698']], 'subnet_ipam': [{'subnet_cidr': '222.3.209.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 11:10:41,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a0f8e5c-81a2-4049-9895-57942e3c859e', 'name': 'ctest-vn-37779141', 'tenant_id': '8a1f37495b0b43f695695cdf4de0c644', 'project_id': '8a1f37495b0b43f695695cdf4de0c644', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b97fa582-05b7-4cd9-bacc-449253153c5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-vn-37779141'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-policy-allow-all-76660698']], 'subnet_ipam': [{'subnet_cidr': '134.97.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 11:10:41,178 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 11:10:41,519 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 11:10:41,547 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e0bc33c6-749a-4afe-a304-51673d49d653
2025-04-28 11:10:41,562 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a1f3749-5b0b-43f6-9569-5cdf4de0c644
2025-04-28 11:10:41,647 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:41,663 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:41,679 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1731b71a-1eac-4ed7-a8bb-399b19531d5c
2025-04-28 11:10:41,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1731b71a-1eac-4ed7-a8bb-399b19531d5c
2025-04-28 11:10:41,696 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b880bfa4-c75d-4a71-bd7d-25252bd0a5d1
2025-04-28 11:10:41,704 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 11:10:41,704 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:41,716 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1731b71a-1eac-4ed7-a8bb-399b19531d5c
2025-04-28 11:10:41,735 - INFO - Verified VN network id 9 for VN 9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:41,735 - INFO - Verifications in API Server for VN ctest-vn-82894323 passed
2025-04-28 11:10:41,736 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:41,750 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1731b71a-1eac-4ed7-a8bb-399b19531d5c
2025-04-28 11:10:41,758 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1731b71a-1eac-4ed7-a8bb-399b19531d5c
2025-04-28 11:10:41,767 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b880bfa4-c75d-4a71-bd7d-25252bd0a5d1
2025-04-28 11:10:41,782 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-82894323', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00492973', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11315154241939523964', 'uuid-lslong': '13091927539533066971'}, 'enable': 'true', 'created': '2025-04-28T11:10:39', 'last-modified': '2025-04-28T11:10:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068360'}
2025-04-28 11:10:41,790 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 11:10:41,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82894323 passed
2025-04-28 11:10:41,790 - DEBUG - ====Verifying policy data for ctest-vn-82894323 in API_Server ======
2025-04-28 11:10:41,790 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 11:10:41,797 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e0bc33c6-749a-4afe-a304-51673d49d653
2025-04-28 11:10:41,811 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a1f3749-5b0b-43f6-9569-5cdf4de0c644
2025-04-28 11:10:41,893 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9d0780d5-318f-497c-b5af-debbb305b2db
2025-04-28 11:10:41,915 - DEBUG - ==>Verifying data for policy with id: 9e1255ec-cf3a-4c11-b073-81a28c7325e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-policy-allow-all-76660698']
2025-04-28 11:10:41,915 - INFO - VN ctest-vn-82894323 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 11:10:41,916 - DEBUG - Verifying the vn in opserver
2025-04-28 11:10:41,916 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-82894323 virtual network link through opserver 10.0.0.254
2025-04-28 11:10:41,916 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 11:10:42,253 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 11:10:42,309 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-82894323', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-82894323?flat'}
2025-04-28 11:10:42,309 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-82894323 is found in opserver
2025-04-28 11:10:42,321 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 11:10:42,326 - DEBUG - VRF ids for VN ctest-vn-82894323: {}
2025-04-28 11:10:42,326 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 11:10:42,332 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e0bc33c6-749a-4afe-a304-51673d49d653
2025-04-28 11:10:42,343 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a1f3749-5b0b-43f6-9569-5cdf4de0c644
2025-04-28 11:10:42,461 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:42,475 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:42,485 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b24e1534-0f91-420b-b161-e2ed476c4293
2025-04-28 11:10:42,492 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b24e1534-0f91-420b-b161-e2ed476c4293
2025-04-28 11:10:42,498 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7dda551-ebb2-47b6-80c1-107fc74a5cd6
2025-04-28 11:10:42,505 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 11:10:42,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:42,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b24e1534-0f91-420b-b161-e2ed476c4293
2025-04-28 11:10:42,528 - INFO - Verified VN network id 10 for VN 5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:42,528 - INFO - Verifications in API Server for VN ctest-vn-37779141 passed
2025-04-28 11:10:42,528 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:42,537 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b24e1534-0f91-420b-b161-e2ed476c4293
2025-04-28 11:10:42,544 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b24e1534-0f91-420b-b161-e2ed476c4293
2025-04-28 11:10:42,550 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7dda551-ebb2-47b6-80c1-107fc74a5cd6
2025-04-28 11:10:42,562 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-37779141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00492973', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6489562116027203657', 'uuid-lslong': '10994790359237428638'}, 'enable': 'true', 'created': '2025-04-28T11:10:40', 'last-modified': '2025-04-28T11:10:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.605922'}
2025-04-28 11:10:42,568 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 11:10:42,568 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37779141 passed
2025-04-28 11:10:42,568 - DEBUG - ====Verifying policy data for ctest-vn-37779141 in API_Server ======
2025-04-28 11:10:42,569 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-28 11:10:42,574 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e0bc33c6-749a-4afe-a304-51673d49d653
2025-04-28 11:10:42,587 - DEBUG - Requesting: http://10.0.0.254:8082/project/8a1f3749-5b0b-43f6-9569-5cdf4de0c644
2025-04-28 11:10:42,674 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5a0f8e5c-81a2-4049-9895-57942e3c859e
2025-04-28 11:10:42,685 - DEBUG - ==>Verifying data for policy with id: 9e1255ec-cf3a-4c11-b073-81a28c7325e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-00492973', 'ctest-policy-allow-all-76660698']
2025-04-28 11:10:42,685 - INFO - VN ctest-vn-37779141 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 11:10:42,685 - DEBUG - Verifying the vn in opserver
2025-04-28 11:10:42,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-37779141 virtual network link through opserver 10.0.0.254
2025-04-28 11:10:42,685 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-28 11:10:42,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-37779141', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-37779141?flat'}
2025-04-28 11:10:42,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00492973:ctest-vn-37779141 is found in opserver
2025-04-28 11:10:42,707 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 11:10:42,713 - DEBUG - VRF ids for VN ctest-vn-37779141: {}
2025-04-28 11:10:42,779 - DEBUG - Services list from nova: [