2024-11-12 14:39:31,061 - INFO - Domain Default found not creating
2024-11-12 14:39:31,231 - INFO - Project ctest-TestBasicPolicy-28374637 not found, creating it
2024-11-12 14:39:31,770 - INFO - Created Project:ctest-TestBasicPolicy-28374637, ID : 2555c42f-a96a-4368-8ab7-55c77fbe0300
2024-11-12 14:39:33,450 - INFO - ================================================================================
2024-11-12 14:39:33,450 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-12 14:39:33,450 - 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-11-12 14:39:33,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with
2024-11-12 14:39:33,709 - INFO - Initial checks done. Running the testcase now
2024-11-12 14:39:33,710 - INFO -
2024-11-12 14:39:34,320 - DEBUG - Response for create_network : {'network': {'id': 'c9137da7-e0c2-4c36-a42e-c38151ba825a', 'name': 'ctest-vn-52451714', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-52451714'], 'port_security_enabled': True, 'description': ''}}
2024-11-12 14:39:34,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a7d63ca-603e-4741-b2aa-410e3f8fe8a9', 'name': '', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'network_id': 'c9137da7-e0c2-4c36-a42e-c38151ba825a', 'ip_version': 4, 'cidr': '160.158.147.128/26', 'allocation_pools': [{'start': '160.158.147.130', 'end': '160.158.147.190'}], 'gateway_ip': '160.158.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.158.147.130', 'tags': [], 'project_id': '2555c42fa96a43688ab755c77fbe0300'}}
2024-11-12 14:39:34,539 - INFO - Created VN ctest-vn-52451714
2024-11-12 14:39:34,598 - DEBUG - VN ctest-vn-52451714 UUID is c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:34,916 - DEBUG - Response for create_network : {'network': {'id': '252ac8f5-9980-4d14-92dd-c611e02b58f3', 'name': 'ctest-vn-76715232', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-76715232'], 'port_security_enabled': True, 'description': ''}}
2024-11-12 14:39:35,128 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d6db2b1-a3c5-4d06-9cfc-bedb5055b5d0', 'name': '', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'network_id': '252ac8f5-9980-4d14-92dd-c611e02b58f3', 'ip_version': 4, 'cidr': '95.136.242.128/26', 'allocation_pools': [{'start': '95.136.242.130', 'end': '95.136.242.190'}], 'gateway_ip': '95.136.242.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.136.242.130', 'tags': [], 'project_id': '2555c42fa96a43688ab755c77fbe0300'}}
2024-11-12 14:39:35,149 - INFO - Created VN ctest-vn-76715232
2024-11-12 14:39:35,206 - DEBUG - VN ctest-vn-76715232 UUID is 252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:35,333 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714, 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-28374637:ctest-vn-76715232, 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-11-12 14:39:35,669 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9137da7-e0c2-4c36-a42e-c38151ba825a', 'name': 'ctest-vn-52451714', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a7d63ca-603e-4741-b2aa-410e3f8fe8a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-52451714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793']], 'subnet_ipam': [{'subnet_cidr': '160.158.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-12 14:39:35,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '252ac8f5-9980-4d14-92dd-c611e02b58f3', 'name': 'ctest-vn-76715232', 'tenant_id': '2555c42fa96a43688ab755c77fbe0300', 'project_id': '2555c42fa96a43688ab755c77fbe0300', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d6db2b1-a3c5-4d06-9cfc-bedb5055b5d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-vn-76715232'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793']], 'subnet_ipam': [{'subnet_cidr': '95.136.242.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-12 14:39:36,094 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-12 14:39:36,395 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-12 14:39:36,430 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a
2024-11-12 14:39:36,444 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300
2024-11-12 14:39:36,538 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:36,553 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:36,569 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3
2024-11-12 14:39:36,578 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3
2024-11-12 14:39:36,587 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e1f704bd-6052-4291-b52a-3a1454f35097
2024-11-12 14:39:36,594 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-12 14:39:36,594 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:36,611 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3
2024-11-12 14:39:36,637 - INFO - Verified VN network id 9 for VN c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:36,638 - INFO - Verifications in API Server for VN ctest-vn-52451714 passed
2024-11-12 14:39:36,638 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:36,654 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3
2024-11-12 14:39:36,662 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c8f510cd-36eb-4785-b044-821300dbd8e3
2024-11-12 14:39:36,670 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/e1f704bd-6052-4291-b52a-3a1454f35097
2024-11-12 14:39:36,684 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28374637', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14489062586164857910', 'uuid-lslong': '11830608231338246746'}, 'enable': 'true', 'created': '2024-11-12T14:39:34', 'last-modified': '2024-11-12T14:39:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043827'}
2024-11-12 14:39:36,692 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-12 14:39:36,692 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52451714 passed
2024-11-12 14:39:36,692 - DEBUG - ====Verifying policy data for ctest-vn-52451714 in API_Server ======
2024-11-12 14:39:36,692 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-12 14:39:36,698 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a
2024-11-12 14:39:36,711 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300
2024-11-12 14:39:36,787 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c9137da7-e0c2-4c36-a42e-c38151ba825a
2024-11-12 14:39:36,806 - DEBUG - ==>Verifying data for policy with id: 181e8bab-3c4b-41ae-9576-ef777b980c0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793']
2024-11-12 14:39:36,806 - INFO - VN ctest-vn-52451714 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-12 14:39:36,806 - DEBUG - Verifying the vn in opserver
2024-11-12 14:39:36,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714 virtual network link through opserver 10.0.0.23
2024-11-12 14:39:36,806 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-12 14:39:37,113 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-12 14:39:37,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714?flat'}
2024-11-12 14:39:37,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-52451714 is found in opserver
2024-11-12 14:39:37,197 - DEBUG - Do not have enough data to verify VN in agent
2024-11-12 14:39:37,203 - DEBUG - VRF ids for VN ctest-vn-52451714: {}
2024-11-12 14:39:37,203 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-12 14:39:37,208 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a
2024-11-12 14:39:37,222 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300
2024-11-12 14:39:37,303 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:37,320 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:37,334 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d
2024-11-12 14:39:37,343 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d
2024-11-12 14:39:37,350 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/8ee8978c-49b4-4f98-b826-330f35da9612
2024-11-12 14:39:37,359 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-12 14:39:37,359 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:37,372 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d
2024-11-12 14:39:37,391 - INFO - Verified VN network id 10 for VN 252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:37,391 - INFO - Verifications in API Server for VN ctest-vn-76715232 passed
2024-11-12 14:39:37,391 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:37,404 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d
2024-11-12 14:39:37,413 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/45c41fc3-054d-4ae2-95ae-921b1c7c969d
2024-11-12 14:39:37,426 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/8ee8978c-49b4-4f98-b826-330f35da9612
2024-11-12 14:39:37,439 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28374637', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2678173885593046292', 'uuid-lslong': '10582832479468214515'}, 'enable': 'true', 'created': '2024-11-12T14:39:34', 'last-modified': '2024-11-12T14:39:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.527383'}
2024-11-12 14:39:37,446 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-12 14:39:37,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76715232 passed
2024-11-12 14:39:37,446 - DEBUG - ====Verifying policy data for ctest-vn-76715232 in API_Server ======
2024-11-12 14:39:37,446 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-12 14:39:37,452 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b35b3131-2769-48ea-ba4e-2de5c980390a
2024-11-12 14:39:37,466 - DEBUG - Requesting: http://10.0.0.23:8082/project/2555c42f-a96a-4368-8ab7-55c77fbe0300
2024-11-12 14:39:37,547 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/252ac8f5-9980-4d14-92dd-c611e02b58f3
2024-11-12 14:39:37,561 - DEBUG - ==>Verifying data for policy with id: 181e8bab-3c4b-41ae-9576-ef777b980c0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-28374637', 'ctest-policy-allow-all-45992793']
2024-11-12 14:39:37,561 - INFO - VN ctest-vn-76715232 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-12 14:39:37,561 - DEBUG - Verifying the vn in opserver
2024-11-12 14:39:37,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232 virtual network link through opserver 10.0.0.23
2024-11-12 14:39:37,562 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-12 14:39:37,573 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232?flat'}
2024-11-12 14:39:37,573 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28374637:ctest-vn-76715232 is found in opserver
2024-11-12 14:39:37,585 - DEBUG - Do not have enough data to verify VN in agent
2024-11-12 14:39:37,590 - DEBUG - VRF ids for VN ctest-vn-76715232: {}
2024-11-12 14:39:37,649 - DEBUG - Services list from nova: [