2025-01-14 19:47:47,952 - INFO - Domain Default found not creating
2025-01-14 19:47:48,107 - INFO - Project ctest-TestBasicPolicy-13344698 not found, creating it
2025-01-14 19:47:48,593 - INFO - Created Project:ctest-TestBasicPolicy-13344698, ID : 149c3a10-6207-45d8-b5c5-c974e75d9bd5
2025-01-14 19:47:50,078 - INFO - ================================================================================
2025-01-14 19:47:50,078 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 19:47:50,078 - 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-01-14 19:47:50,336 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with
2025-01-14 19:47:50,336 - INFO - Initial checks done. Running the testcase now
2025-01-14 19:47:50,336 - INFO -
2025-01-14 19:47:50,891 - DEBUG - Response for create_network : {'network': {'id': '02f0a46f-e048-48fb-9184-35f4a7477c03', 'name': 'ctest-vn-48098596', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-48098596'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 19:47:51,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '78ba84c3-ffab-429e-891c-20d923b3e4e0', 'name': '', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'network_id': '02f0a46f-e048-48fb-9184-35f4a7477c03', 'ip_version': 4, 'cidr': '167.145.118.0/26', 'allocation_pools': [{'start': '167.145.118.2', 'end': '167.145.118.62'}], 'gateway_ip': '167.145.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.145.118.2', 'tags': [], 'project_id': '149c3a10620745d8b5c5c974e75d9bd5'}}
2025-01-14 19:47:51,118 - INFO - Created VN ctest-vn-48098596
2025-01-14 19:47:51,170 - DEBUG - VN ctest-vn-48098596 UUID is 02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:51,464 - DEBUG - Response for create_network : {'network': {'id': '592a3723-1c4c-409c-9c23-75853fac89de', 'name': 'ctest-vn-60915520', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-60915520'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 19:47:51,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '206d7c70-61ca-46e4-abfa-a9e8c8204696', 'name': '', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'network_id': '592a3723-1c4c-409c-9c23-75853fac89de', 'ip_version': 4, 'cidr': '42.107.112.192/26', 'allocation_pools': [{'start': '42.107.112.194', 'end': '42.107.112.254'}], 'gateway_ip': '42.107.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.107.112.194', 'tags': [], 'project_id': '149c3a10620745d8b5c5c974e75d9bd5'}}
2025-01-14 19:47:51,667 - INFO - Created VN ctest-vn-60915520
2025-01-14 19:47:51,722 - DEBUG - VN ctest-vn-60915520 UUID is 592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:51,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596, 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-13344698:ctest-vn-60915520, 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-01-14 19:47:52,143 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02f0a46f-e048-48fb-9184-35f4a7477c03', 'name': 'ctest-vn-48098596', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78ba84c3-ffab-429e-891c-20d923b3e4e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-48098596'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644']], 'subnet_ipam': [{'subnet_cidr': '167.145.118.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 19:47:52,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '592a3723-1c4c-409c-9c23-75853fac89de', 'name': 'ctest-vn-60915520', 'tenant_id': '149c3a10620745d8b5c5c974e75d9bd5', 'project_id': '149c3a10620745d8b5c5c974e75d9bd5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['206d7c70-61ca-46e4-abfa-a9e8c8204696'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-vn-60915520'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644']], 'subnet_ipam': [{'subnet_cidr': '42.107.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 19:47:52,554 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-14 19:47:52,856 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-14 19:47:52,886 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d
2025-01-14 19:47:52,900 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5
2025-01-14 19:47:52,982 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:52,994 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:53,004 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d
2025-01-14 19:47:53,012 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d
2025-01-14 19:47:53,020 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/31f094d0-b61f-4714-a19d-4f0630531e8c
2025-01-14 19:47:53,030 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 19:47:53,030 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:53,041 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d
2025-01-14 19:47:53,060 - INFO - Verified VN network id 8 for VN 02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:53,060 - INFO - Verifications in API Server for VN ctest-vn-48098596 passed
2025-01-14 19:47:53,061 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:53,076 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d
2025-01-14 19:47:53,087 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c266f953-398f-4fd0-abf6-190adc0f363d
2025-01-14 19:47:53,097 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/31f094d0-b61f-4714-a19d-4f0630531e8c
2025-01-14 19:47:53,115 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13344698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '211849982897572091', 'uuid-lslong': '10485565157320129539'}, 'enable': 'true', 'created': '2025-01-14T19:47:50', 'last-modified': '2025-01-14T19:47:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001541'}
2025-01-14 19:47:53,122 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 19:47:53,122 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48098596 passed
2025-01-14 19:47:53,123 - DEBUG - ====Verifying policy data for ctest-vn-48098596 in API_Server ======
2025-01-14 19:47:53,123 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-14 19:47:53,129 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d
2025-01-14 19:47:53,141 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5
2025-01-14 19:47:53,219 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/02f0a46f-e048-48fb-9184-35f4a7477c03
2025-01-14 19:47:53,229 - DEBUG - ==>Verifying data for policy with id: a7655e76-67b0-44aa-8c8b-12079a87f81a, fqn: ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644']
2025-01-14 19:47:53,230 - INFO - VN ctest-vn-48098596 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 19:47:53,230 - DEBUG - Verifying the vn in opserver
2025-01-14 19:47:53,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596 virtual network link through opserver 10.0.0.45
2025-01-14 19:47:53,230 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-14 19:47:53,534 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-14 19:47:53,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596?flat'}
2025-01-14 19:47:53,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-48098596 is found in opserver
2025-01-14 19:47:53,607 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 19:47:53,613 - DEBUG - VRF ids for VN ctest-vn-48098596: {}
2025-01-14 19:47:53,613 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-14 19:47:53,619 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d
2025-01-14 19:47:53,632 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5
2025-01-14 19:47:53,715 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:53,728 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:53,739 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893
2025-01-14 19:47:53,748 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893
2025-01-14 19:47:53,757 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/aa881904-e50a-4ae4-9ce0-d2fb9b974b68
2025-01-14 19:47:53,765 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 19:47:53,765 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:53,777 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893
2025-01-14 19:47:53,796 - INFO - Verified VN network id 9 for VN 592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:53,796 - INFO - Verifications in API Server for VN ctest-vn-60915520 passed
2025-01-14 19:47:53,796 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:53,807 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893
2025-01-14 19:47:53,815 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/0779c535-bdfe-451f-8314-c2d9699f9893
2025-01-14 19:47:53,824 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/aa881904-e50a-4ae4-9ce0-d2fb9b974b68
2025-01-14 19:47:53,838 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13344698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6425008442335576220', 'uuid-lslong': '11250965509261003230'}, 'enable': 'true', 'created': '2025-01-14T19:47:51', 'last-modified': '2025-01-14T19:47:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.473886'}
2025-01-14 19:47:53,845 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 19:47:53,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60915520 passed
2025-01-14 19:47:53,845 - DEBUG - ====Verifying policy data for ctest-vn-60915520 in API_Server ======
2025-01-14 19:47:53,845 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-14 19:47:53,851 - DEBUG - Requesting: http://10.0.0.45:8082/domain/f36f1c64-622a-43ec-b66d-251e5724fd7d
2025-01-14 19:47:53,866 - DEBUG - Requesting: http://10.0.0.45:8082/project/149c3a10-6207-45d8-b5c5-c974e75d9bd5
2025-01-14 19:47:53,948 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/592a3723-1c4c-409c-9c23-75853fac89de
2025-01-14 19:47:53,960 - DEBUG - ==>Verifying data for policy with id: a7655e76-67b0-44aa-8c8b-12079a87f81a, fqn: ['default-domain', 'ctest-TestBasicPolicy-13344698', 'ctest-policy-allow-all-16510644']
2025-01-14 19:47:53,960 - INFO - VN ctest-vn-60915520 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 19:47:53,960 - DEBUG - Verifying the vn in opserver
2025-01-14 19:47:53,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520 virtual network link through opserver 10.0.0.45
2025-01-14 19:47:53,960 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-14 19:47:53,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520?flat'}
2025-01-14 19:47:53,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13344698:ctest-vn-60915520 is found in opserver
2025-01-14 19:47:53,985 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 19:47:53,991 - DEBUG - VRF ids for VN ctest-vn-60915520: {}
2025-01-14 19:47:54,058 - DEBUG - Services list from nova: [