2024-09-11 16:07:21,275 - INFO - Domain Default found not creating
2024-09-11 16:07:21,444 - INFO - Project ctest-TestBasicPolicy-00425311 not found, creating it
2024-09-11 16:07:21,936 - INFO - Created Project:ctest-TestBasicPolicy-00425311, ID : f85e9924-2257-4e2a-8181-6c52bf92ae08
2024-09-11 16:07:23,521 - INFO - ================================================================================
2024-09-11 16:07:23,521 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 16:07:23,521 - 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-11 16:07:23,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2024-09-11 16:07:23,781 - INFO - Initial checks done. Running the testcase now
2024-09-11 16:07:23,781 - INFO -
2024-09-11 16:07:24,386 - DEBUG - Response for create_network : {'network': {'id': '88f0cbd9-15d4-4568-ba16-0ffa4c89de86', 'name': 'ctest-vn-86331407', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-86331407'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:07:24,548 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa1bf07e-3c46-4b0b-9f68-2bdcf2388bb2', 'name': '', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'network_id': '88f0cbd9-15d4-4568-ba16-0ffa4c89de86', 'ip_version': 4, 'cidr': '115.213.47.192/26', 'allocation_pools': [{'start': '115.213.47.194', 'end': '115.213.47.254'}], 'gateway_ip': '115.213.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.213.47.194', 'tags': [], 'project_id': 'f85e992422574e2a81816c52bf92ae08'}}
2024-09-11 16:07:24,569 - INFO - Created VN ctest-vn-86331407
2024-09-11 16:07:24,624 - DEBUG - VN ctest-vn-86331407 UUID is 88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:24,981 - DEBUG - Response for create_network : {'network': {'id': '430341af-970f-48d3-bf4a-c2e37fd8a34e', 'name': 'ctest-vn-00044044', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-00044044'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:07:25,182 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2bbcc46-baa9-4c66-9fe6-bd38fa820c3a', 'name': '', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'network_id': '430341af-970f-48d3-bf4a-c2e37fd8a34e', 'ip_version': 4, 'cidr': '91.45.193.64/26', 'allocation_pools': [{'start': '91.45.193.66', 'end': '91.45.193.126'}], 'gateway_ip': '91.45.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.45.193.66', 'tags': [], 'project_id': 'f85e992422574e2a81816c52bf92ae08'}}
2024-09-11 16:07:25,207 - INFO - Created VN ctest-vn-00044044
2024-09-11 16:07:25,268 - DEBUG - VN ctest-vn-00044044 UUID is 430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:25,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407, 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-00425311:ctest-vn-00044044, 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-11 16:07:25,752 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88f0cbd9-15d4-4568-ba16-0ffa4c89de86', 'name': 'ctest-vn-86331407', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa1bf07e-3c46-4b0b-9f68-2bdcf2388bb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-86331407'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222']], 'subnet_ipam': [{'subnet_cidr': '115.213.47.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:07:26,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '430341af-970f-48d3-bf4a-c2e37fd8a34e', 'name': 'ctest-vn-00044044', 'tenant_id': 'f85e992422574e2a81816c52bf92ae08', 'project_id': 'f85e992422574e2a81816c52bf92ae08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2bbcc46-baa9-4c66-9fe6-bd38fa820c3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-vn-00044044'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222']], 'subnet_ipam': [{'subnet_cidr': '91.45.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:07:26,184 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-11 16:07:26,503 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-11 16:07:26,535 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790
2024-09-11 16:07:26,551 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08
2024-09-11 16:07:26,633 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:26,653 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:26,668 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616
2024-09-11 16:07:26,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616
2024-09-11 16:07:26,688 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/010ba868-e35a-418d-9121-4d5e5fd16068
2024-09-11 16:07:26,696 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 16:07:26,696 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:26,711 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616
2024-09-11 16:07:26,736 - INFO - Verified VN network id 8 for VN 88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:26,736 - INFO - Verifications in API Server for VN ctest-vn-86331407 passed
2024-09-11 16:07:26,736 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:26,753 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616
2024-09-11 16:07:26,763 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/511343e4-e73a-4a43-8294-00377f7a4616
2024-09-11 16:07:26,773 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/010ba868-e35a-418d-9121-4d5e5fd16068
2024-09-11 16:07:26,787 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00425311', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9867610916803331432', 'uuid-lslong': '13408922508242574982'}, 'enable': 'true', 'created': '2024-09-11T16:07:24', 'last-modified': '2024-09-11T16:07:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068706'}
2024-09-11 16:07:26,795 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 16:07:26,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86331407 passed
2024-09-11 16:07:26,795 - DEBUG - ====Verifying policy data for ctest-vn-86331407 in API_Server ======
2024-09-11 16:07:26,795 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-11 16:07:26,802 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790
2024-09-11 16:07:26,816 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08
2024-09-11 16:07:26,891 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/88f0cbd9-15d4-4568-ba16-0ffa4c89de86
2024-09-11 16:07:26,906 - DEBUG - ==>Verifying data for policy with id: 26121608-4652-4837-ae81-0361925d213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222']
2024-09-11 16:07:26,906 - INFO - VN ctest-vn-86331407 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 16:07:26,906 - DEBUG - Verifying the vn in opserver
2024-09-11 16:07:26,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407 virtual network link through opserver 10.0.0.27
2024-09-11 16:07:26,906 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-11 16:07:27,208 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-11 16:07:27,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407?flat'}
2024-09-11 16:07:27,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-86331407 is found in opserver
2024-09-11 16:07:27,284 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 16:07:27,289 - DEBUG - VRF ids for VN ctest-vn-86331407: {}
2024-09-11 16:07:27,289 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-11 16:07:27,295 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790
2024-09-11 16:07:27,309 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08
2024-09-11 16:07:27,395 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:27,412 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:27,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8
2024-09-11 16:07:27,437 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8
2024-09-11 16:07:27,446 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55da88a3-0a2d-45c0-836b-288307fc6ddf
2024-09-11 16:07:27,453 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 16:07:27,454 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:27,469 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8
2024-09-11 16:07:27,491 - INFO - Verified VN network id 9 for VN 430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:27,491 - INFO - Verifications in API Server for VN ctest-vn-00044044 passed
2024-09-11 16:07:27,491 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:27,511 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8
2024-09-11 16:07:27,523 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5b32d3fb-2789-40dd-95af-c886d6c583a8
2024-09-11 16:07:27,533 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55da88a3-0a2d-45c0-836b-288307fc6ddf
2024-09-11 16:07:27,550 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00425311', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4828775447880747219', 'uuid-lslong': '13784043891879093070'}, 'enable': 'true', 'created': '2024-09-11T16:07:24', 'last-modified': '2024-09-11T16:07:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544112'}
2024-09-11 16:07:27,556 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 16:07:27,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00044044 passed
2024-09-11 16:07:27,557 - DEBUG - ====Verifying policy data for ctest-vn-00044044 in API_Server ======
2024-09-11 16:07:27,557 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-09-11 16:07:27,564 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e5ae523c-51c5-4b7b-9ab6-82d6d8953790
2024-09-11 16:07:27,577 - DEBUG - Requesting: http://10.0.0.27:8082/project/f85e9924-2257-4e2a-8181-6c52bf92ae08
2024-09-11 16:07:27,662 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/430341af-970f-48d3-bf4a-c2e37fd8a34e
2024-09-11 16:07:27,678 - DEBUG - ==>Verifying data for policy with id: 26121608-4652-4837-ae81-0361925d213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00425311', 'ctest-policy-allow-all-65036222']
2024-09-11 16:07:27,678 - INFO - VN ctest-vn-00044044 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 16:07:27,678 - DEBUG - Verifying the vn in opserver
2024-09-11 16:07:27,678 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044 virtual network link through opserver 10.0.0.27
2024-09-11 16:07:27,678 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-09-11 16:07:27,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044?flat'}
2024-09-11 16:07:27,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00425311:ctest-vn-00044044 is found in opserver
2024-09-11 16:07:27,701 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 16:07:27,707 - DEBUG - VRF ids for VN ctest-vn-00044044: {}
2024-09-11 16:07:27,770 - DEBUG - Services list from nova: [