2024-09-19 16:41:29,672 - INFO - Domain Default found not creating
2024-09-19 16:41:30,059 - INFO - Project ctest-TestBasicPolicy-21549233 not found, creating it
2024-09-19 16:41:30,857 - INFO - Created Project:ctest-TestBasicPolicy-21549233, ID : e74d26af-2118-4491-9cb0-edb7f57c1c7f
2024-09-19 16:41:32,363 - INFO - ================================================================================
2024-09-19 16:41:32,363 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 16:41:32,363 - 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
2024-09-19 16:41:32,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.8': '0'}} with
2024-09-19 16:41:32,618 - INFO - Initial checks done. Running the testcase now
2024-09-19 16:41:32,619 - INFO -
2024-09-19 16:41:33,199 - DEBUG - Response for create_network : {'network': {'id': '2f791aab-7cac-421f-82c9-c2be8bf3e26a', 'name': 'ctest-vn-61202122', 'tenant_id': 'e74d26af211844919cb0edb7f57c1c7f', 'project_id': 'e74d26af211844919cb0edb7f57c1c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-vn-61202122'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:41:33,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '10e3d408-732b-4953-bd4a-5787e4f08673', 'name': '', 'tenant_id': 'e74d26af211844919cb0edb7f57c1c7f', 'network_id': '2f791aab-7cac-421f-82c9-c2be8bf3e26a', 'ip_version': 4, 'cidr': '86.157.27.0/26', 'allocation_pools': [{'start': '86.157.27.2', 'end': '86.157.27.62'}], 'gateway_ip': '86.157.27.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.157.27.2', 'tags': [], 'project_id': 'e74d26af211844919cb0edb7f57c1c7f'}}
2024-09-19 16:41:33,449 - INFO - Created VN ctest-vn-61202122
2024-09-19 16:41:33,508 - DEBUG - VN ctest-vn-61202122 UUID is 2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:33,835 - DEBUG - Response for create_network : {'network': {'id': '9fdb04b9-75f8-41d7-a37c-61570fd030f2', 'name': 'ctest-vn-72985308', 'tenant_id': 'e74d26af211844919cb0edb7f57c1c7f', 'project_id': 'e74d26af211844919cb0edb7f57c1c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-vn-72985308'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:41:34,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a9ef8e3-69e4-4061-b09a-327012b092ef', 'name': '', 'tenant_id': 'e74d26af211844919cb0edb7f57c1c7f', 'network_id': '9fdb04b9-75f8-41d7-a37c-61570fd030f2', 'ip_version': 4, 'cidr': '169.11.174.128/26', 'allocation_pools': [{'start': '169.11.174.130', 'end': '169.11.174.190'}], 'gateway_ip': '169.11.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.11.174.130', 'tags': [], 'project_id': 'e74d26af211844919cb0edb7f57c1c7f'}}
2024-09-19 16:41:34,070 - INFO - Created VN ctest-vn-72985308
2024-09-19 16:41:34,129 - DEBUG - VN ctest-vn-72985308 UUID is 9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:34,256 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-61202122, 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-21549233:ctest-vn-72985308, 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]
2024-09-19 16:41:34,581 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f791aab-7cac-421f-82c9-c2be8bf3e26a', 'name': 'ctest-vn-61202122', 'tenant_id': 'e74d26af211844919cb0edb7f57c1c7f', 'project_id': 'e74d26af211844919cb0edb7f57c1c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10e3d408-732b-4953-bd4a-5787e4f08673'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-vn-61202122'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-policy-allow-all-28786491']], 'subnet_ipam': [{'subnet_cidr': '86.157.27.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:41:34,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9fdb04b9-75f8-41d7-a37c-61570fd030f2', 'name': 'ctest-vn-72985308', 'tenant_id': 'e74d26af211844919cb0edb7f57c1c7f', 'project_id': 'e74d26af211844919cb0edb7f57c1c7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a9ef8e3-69e4-4061-b09a-327012b092ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-vn-72985308'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-policy-allow-all-28786491']], 'subnet_ipam': [{'subnet_cidr': '169.11.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:41:35,025 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-19 16:41:35,340 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-19 16:41:35,377 - DEBUG - Requesting: http://10.0.0.22:8082/domain/13ce7c80-ea0f-4c1b-9546-2703f2237f44
2024-09-19 16:41:35,393 - DEBUG - Requesting: http://10.0.0.22:8082/project/e74d26af-2118-4491-9cb0-edb7f57c1c7f
2024-09-19 16:41:35,483 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:35,504 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:35,519 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6a814a37-3a53-4a0a-8532-d1837d557873
2024-09-19 16:41:35,528 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6a814a37-3a53-4a0a-8532-d1837d557873
2024-09-19 16:41:35,536 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/24c9b4a1-44a4-4215-b130-feb98b755b16
2024-09-19 16:41:35,543 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 16:41:35,543 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:35,556 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6a814a37-3a53-4a0a-8532-d1837d557873
2024-09-19 16:41:35,574 - INFO - Verified VN network id 8 for VN 2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:35,574 - INFO - Verifications in API Server for VN ctest-vn-61202122 passed
2024-09-19 16:41:35,574 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:35,588 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6a814a37-3a53-4a0a-8532-d1837d557873
2024-09-19 16:41:35,596 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6a814a37-3a53-4a0a-8532-d1837d557873
2024-09-19 16:41:35,604 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/24c9b4a1-44a4-4215-b130-feb98b755b16
2024-09-19 16:41:35,617 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-61202122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21549233', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3420794715797996063', 'uuid-lslong': '9424277818897064554'}, 'enable': 'true', 'created': '2024-09-19T16:41:33', 'last-modified': '2024-09-19T16:41:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066569'}
2024-09-19 16:41:35,623 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 16:41:35,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61202122 passed
2024-09-19 16:41:35,624 - DEBUG - ====Verifying policy data for ctest-vn-61202122 in API_Server ======
2024-09-19 16:41:35,624 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-19 16:41:35,629 - DEBUG - Requesting: http://10.0.0.22:8082/domain/13ce7c80-ea0f-4c1b-9546-2703f2237f44
2024-09-19 16:41:35,641 - DEBUG - Requesting: http://10.0.0.22:8082/project/e74d26af-2118-4491-9cb0-edb7f57c1c7f
2024-09-19 16:41:35,727 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2f791aab-7cac-421f-82c9-c2be8bf3e26a
2024-09-19 16:41:35,741 - DEBUG - ==>Verifying data for policy with id: 5cb4cdb4-65fe-464c-a574-9662a5c1233a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-policy-allow-all-28786491']
2024-09-19 16:41:35,741 - INFO - VN ctest-vn-61202122 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 16:41:35,742 - DEBUG - Verifying the vn in opserver
2024-09-19 16:41:35,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-61202122 virtual network link through opserver 10.0.0.22
2024-09-19 16:41:35,742 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-19 16:41:36,040 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-19 16:41:36,399 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-61202122', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-61202122?flat'}
2024-09-19 16:41:36,399 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-61202122 is found in opserver
2024-09-19 16:41:36,411 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 16:41:36,417 - DEBUG - VRF ids for VN ctest-vn-61202122: {}
2024-09-19 16:41:36,417 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-19 16:41:36,423 - DEBUG - Requesting: http://10.0.0.22:8082/domain/13ce7c80-ea0f-4c1b-9546-2703f2237f44
2024-09-19 16:41:36,435 - DEBUG - Requesting: http://10.0.0.22:8082/project/e74d26af-2118-4491-9cb0-edb7f57c1c7f
2024-09-19 16:41:36,514 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:36,530 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:36,545 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3b43075-f4f9-4c74-bc30-cea36fcdc5dc
2024-09-19 16:41:36,554 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3b43075-f4f9-4c74-bc30-cea36fcdc5dc
2024-09-19 16:41:36,562 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fd620d80-188a-4f26-bb06-f8df138c588c
2024-09-19 16:41:36,568 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 16:41:36,568 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:36,581 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3b43075-f4f9-4c74-bc30-cea36fcdc5dc
2024-09-19 16:41:36,601 - INFO - Verified VN network id 9 for VN 9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:36,601 - INFO - Verifications in API Server for VN ctest-vn-72985308 passed
2024-09-19 16:41:36,601 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:36,615 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3b43075-f4f9-4c74-bc30-cea36fcdc5dc
2024-09-19 16:41:36,624 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3b43075-f4f9-4c74-bc30-cea36fcdc5dc
2024-09-19 16:41:36,634 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fd620d80-188a-4f26-bb06-f8df138c588c
2024-09-19 16:41:36,648 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-72985308', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21549233', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11518805666524840407', 'uuid-lslong': '11780397751849726194'}, 'enable': 'true', 'created': '2024-09-19T16:41:33', 'last-modified': '2024-09-19T16:41:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.832566'}
2024-09-19 16:41:36,654 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 16:41:36,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72985308 passed
2024-09-19 16:41:36,655 - DEBUG - ====Verifying policy data for ctest-vn-72985308 in API_Server ======
2024-09-19 16:41:36,655 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-19 16:41:36,660 - DEBUG - Requesting: http://10.0.0.22:8082/domain/13ce7c80-ea0f-4c1b-9546-2703f2237f44
2024-09-19 16:41:36,672 - DEBUG - Requesting: http://10.0.0.22:8082/project/e74d26af-2118-4491-9cb0-edb7f57c1c7f
2024-09-19 16:41:36,752 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9fdb04b9-75f8-41d7-a37c-61570fd030f2
2024-09-19 16:41:36,766 - DEBUG - ==>Verifying data for policy with id: 5cb4cdb4-65fe-464c-a574-9662a5c1233a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21549233', 'ctest-policy-allow-all-28786491']
2024-09-19 16:41:36,766 - INFO - VN ctest-vn-72985308 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 16:41:36,766 - DEBUG - Verifying the vn in opserver
2024-09-19 16:41:36,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-72985308 virtual network link through opserver 10.0.0.22
2024-09-19 16:41:36,766 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-19 16:41:36,777 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-72985308', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-72985308?flat'}
2024-09-19 16:41:36,777 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21549233:ctest-vn-72985308 is found in opserver
2024-09-19 16:41:36,788 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 16:41:36,793 - DEBUG - VRF ids for VN ctest-vn-72985308: {}
2024-09-19 16:41:36,848 - DEBUG - Services list from nova: [