2025-01-15 16:56:37,593 - INFO - Domain Default found not creating
2025-01-15 16:56:37,730 - INFO - Project ctest-TestBasicPolicy-89754995 not found, creating it
2025-01-15 16:56:38,219 - INFO - Created Project:ctest-TestBasicPolicy-89754995, ID : 5a4fca49-33ee-4116-add9-fbe9a300f209
2025-01-15 16:56:39,682 - INFO - ================================================================================
2025-01-15 16:56:39,682 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 16:56:39,683 - 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-15 16:56:39,940 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.27': '0'}} with
2025-01-15 16:56:39,940 - INFO - Initial checks done. Running the testcase now
2025-01-15 16:56:39,940 - INFO -
2025-01-15 16:56:40,534 - DEBUG - Response for create_network : {'network': {'id': 'fde82960-f2db-4dab-b617-b66c2f6ac949', 'name': 'ctest-vn-84919848', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-84919848'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 16:56:40,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '7112ec88-6080-4d2d-9410-52dc144a892f', 'name': '', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'network_id': 'fde82960-f2db-4dab-b617-b66c2f6ac949', 'ip_version': 4, 'cidr': '31.152.51.64/26', 'allocation_pools': [{'start': '31.152.51.66', 'end': '31.152.51.126'}], 'gateway_ip': '31.152.51.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.152.51.66', 'tags': [], 'project_id': '5a4fca4933ee4116add9fbe9a300f209'}}
2025-01-15 16:56:40,723 - INFO - Created VN ctest-vn-84919848
2025-01-15 16:56:40,777 - DEBUG - VN ctest-vn-84919848 UUID is fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:41,086 - DEBUG - Response for create_network : {'network': {'id': '9f810012-12d3-4d2a-8b54-778a481a0904', 'name': 'ctest-vn-59754959', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-59754959'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 16:56:41,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f737510f-5113-48bb-a64f-7dfae3d66ed8', 'name': '', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'network_id': '9f810012-12d3-4d2a-8b54-778a481a0904', 'ip_version': 4, 'cidr': '71.31.225.128/26', 'allocation_pools': [{'start': '71.31.225.130', 'end': '71.31.225.190'}], 'gateway_ip': '71.31.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.31.225.130', 'tags': [], 'project_id': '5a4fca4933ee4116add9fbe9a300f209'}}
2025-01-15 16:56:41,302 - INFO - Created VN ctest-vn-59754959
2025-01-15 16:56:41,357 - DEBUG - VN ctest-vn-59754959 UUID is 9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:41,478 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848, 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-89754995:ctest-vn-59754959, 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-15 16:56:41,836 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fde82960-f2db-4dab-b617-b66c2f6ac949', 'name': 'ctest-vn-84919848', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7112ec88-6080-4d2d-9410-52dc144a892f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-84919848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580']], 'subnet_ipam': [{'subnet_cidr': '31.152.51.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 16:56:42,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f810012-12d3-4d2a-8b54-778a481a0904', 'name': 'ctest-vn-59754959', 'tenant_id': '5a4fca4933ee4116add9fbe9a300f209', 'project_id': '5a4fca4933ee4116add9fbe9a300f209', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f737510f-5113-48bb-a64f-7dfae3d66ed8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-vn-59754959'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580']], 'subnet_ipam': [{'subnet_cidr': '71.31.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 16:56:42,289 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-15 16:56:42,589 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-15 16:56:42,627 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f
2025-01-15 16:56:42,641 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209
2025-01-15 16:56:42,722 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:42,733 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:42,742 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293
2025-01-15 16:56:42,749 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293
2025-01-15 16:56:42,756 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/49b6dda8-6e53-4576-a678-78e1e4f37477
2025-01-15 16:56:42,762 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 16:56:42,762 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:42,770 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293
2025-01-15 16:56:42,783 - INFO - Verified VN network id 7 for VN fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:42,783 - INFO - Verifications in API Server for VN ctest-vn-84919848 passed
2025-01-15 16:56:42,783 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:42,794 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293
2025-01-15 16:56:42,800 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/99fac318-89ea-4269-beec-11a8c0149293
2025-01-15 16:56:42,807 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/49b6dda8-6e53-4576-a678-78e1e4f37477
2025-01-15 16:56:42,820 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89754995', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18295918982560697771', 'uuid-lslong': '13121156615135480137'}, 'enable': 'true', 'created': '2025-01-15T16:56:40', 'last-modified': '2025-01-15T16:56:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023684'}
2025-01-15 16:56:42,827 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 16:56:42,827 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84919848 passed
2025-01-15 16:56:42,827 - DEBUG - ====Verifying policy data for ctest-vn-84919848 in API_Server ======
2025-01-15 16:56:42,828 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-15 16:56:42,834 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f
2025-01-15 16:56:42,845 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209
2025-01-15 16:56:42,930 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/fde82960-f2db-4dab-b617-b66c2f6ac949
2025-01-15 16:56:42,940 - DEBUG - ==>Verifying data for policy with id: e3d40f29-c2fd-4ee1-b69d-3b206bfb362a, fqn: ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580']
2025-01-15 16:56:42,940 - INFO - VN ctest-vn-84919848 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 16:56:42,940 - DEBUG - Verifying the vn in opserver
2025-01-15 16:56:42,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848 virtual network link through opserver 10.0.0.30
2025-01-15 16:56:42,941 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-15 16:56:43,237 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-15 16:56:43,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848?flat'}
2025-01-15 16:56:43,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-84919848 is found in opserver
2025-01-15 16:56:43,316 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 16:56:43,324 - DEBUG - VRF ids for VN ctest-vn-84919848: {}
2025-01-15 16:56:43,324 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-15 16:56:43,332 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f
2025-01-15 16:56:43,349 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209
2025-01-15 16:56:43,427 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:43,441 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:43,451 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf
2025-01-15 16:56:43,459 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf
2025-01-15 16:56:43,468 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8f3d4b3b-299d-40d5-b9d0-aace2a03166b
2025-01-15 16:56:43,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 16:56:43,475 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:43,484 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf
2025-01-15 16:56:43,498 - INFO - Verified VN network id 8 for VN 9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:43,498 - INFO - Verifications in API Server for VN ctest-vn-59754959 passed
2025-01-15 16:56:43,498 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:43,510 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf
2025-01-15 16:56:43,520 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/ecd52370-95e9-4de8-94a4-2087371819cf
2025-01-15 16:56:43,528 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8f3d4b3b-299d-40d5-b9d0-aace2a03166b
2025-01-15 16:56:43,540 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89754995', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11493467801651465514', 'uuid-lslong': '10039780905114536196'}, 'enable': 'true', 'created': '2025-01-15T16:56:41', 'last-modified': '2025-01-15T16:56:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481110'}
2025-01-15 16:56:43,547 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 16:56:43,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59754959 passed
2025-01-15 16:56:43,548 - DEBUG - ====Verifying policy data for ctest-vn-59754959 in API_Server ======
2025-01-15 16:56:43,548 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-15 16:56:43,554 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ddebfc21-c48d-47cc-9cbc-5ab7708e3f1f
2025-01-15 16:56:43,566 - DEBUG - Requesting: http://10.0.0.30:8082/project/5a4fca49-33ee-4116-add9-fbe9a300f209
2025-01-15 16:56:43,645 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9f810012-12d3-4d2a-8b54-778a481a0904
2025-01-15 16:56:43,655 - DEBUG - ==>Verifying data for policy with id: e3d40f29-c2fd-4ee1-b69d-3b206bfb362a, fqn: ['default-domain', 'ctest-TestBasicPolicy-89754995', 'ctest-policy-allow-all-38279580']
2025-01-15 16:56:43,655 - INFO - VN ctest-vn-59754959 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 16:56:43,655 - DEBUG - Verifying the vn in opserver
2025-01-15 16:56:43,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959 virtual network link through opserver 10.0.0.30
2025-01-15 16:56:43,655 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-15 16:56:43,666 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959?flat'}
2025-01-15 16:56:43,666 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89754995:ctest-vn-59754959 is found in opserver
2025-01-15 16:56:43,676 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 16:56:43,681 - DEBUG - VRF ids for VN ctest-vn-59754959: {}
2025-01-15 16:56:43,749 - DEBUG - Services list from nova: [