2024-08-27 10:01:58,026 - INFO - Domain Default found not creating
2024-08-27 10:01:58,199 - INFO - Project ctest-TestBasicPolicy-64148914 not found, creating it
2024-08-27 10:01:58,674 - INFO - Created Project:ctest-TestBasicPolicy-64148914, ID : 9ac06b05-44e8-4c97-8395-4fe74471b0e5
2024-08-27 10:02:00,186 - INFO - ================================================================================
2024-08-27 10:02:00,186 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 10:02:00,186 - 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-08-27 10:02:00,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.12': '0'}} with
2024-08-27 10:02:00,447 - INFO - Initial checks done. Running the testcase now
2024-08-27 10:02:00,447 - INFO -
2024-08-27 10:02:01,154 - DEBUG - Response for create_network : {'network': {'id': '258eef56-bc0e-4bb7-8708-e8e55da67f45', 'name': 'ctest-vn-75369508', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-75369508'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 10:02:01,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '209ca657-8198-4e0c-aeb7-c544dcbab7c1', 'name': '', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'network_id': '258eef56-bc0e-4bb7-8708-e8e55da67f45', 'ip_version': 4, 'cidr': '151.242.121.0/26', 'allocation_pools': [{'start': '151.242.121.2', 'end': '151.242.121.62'}], 'gateway_ip': '151.242.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.242.121.2', 'tags': [], 'project_id': '9ac06b0544e84c9783954fe74471b0e5'}}
2024-08-27 10:02:01,412 - INFO - Created VN ctest-vn-75369508
2024-08-27 10:02:01,465 - DEBUG - VN ctest-vn-75369508 UUID is 258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:01,784 - DEBUG - Response for create_network : {'network': {'id': '7ee7655f-7ab2-4772-985e-e5ac2c2c30d3', 'name': 'ctest-vn-46506311', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-46506311'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 10:02:01,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cab368c-f367-4cc7-a1f5-e79a9b645dca', 'name': '', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'network_id': '7ee7655f-7ab2-4772-985e-e5ac2c2c30d3', 'ip_version': 4, 'cidr': '113.110.216.0/26', 'allocation_pools': [{'start': '113.110.216.2', 'end': '113.110.216.62'}], 'gateway_ip': '113.110.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.110.216.2', 'tags': [], 'project_id': '9ac06b0544e84c9783954fe74471b0e5'}}
2024-08-27 10:02:01,980 - INFO - Created VN ctest-vn-46506311
2024-08-27 10:02:02,029 - DEBUG - VN ctest-vn-46506311 UUID is 7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:02,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508, 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-64148914:ctest-vn-46506311, 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-08-27 10:02:02,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '258eef56-bc0e-4bb7-8708-e8e55da67f45', 'name': 'ctest-vn-75369508', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['209ca657-8198-4e0c-aeb7-c544dcbab7c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-75369508'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264']], 'subnet_ipam': [{'subnet_cidr': '151.242.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 10:02:02,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ee7655f-7ab2-4772-985e-e5ac2c2c30d3', 'name': 'ctest-vn-46506311', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cab368c-f367-4cc7-a1f5-e79a9b645dca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-46506311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264']], 'subnet_ipam': [{'subnet_cidr': '113.110.216.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 10:02:02,845 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-08-27 10:02:03,147 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-08-27 10:02:03,179 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920
2024-08-27 10:02:03,192 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5
2024-08-27 10:02:03,263 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:03,275 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:03,284 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23
2024-08-27 10:02:03,291 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23
2024-08-27 10:02:03,298 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/74984706-c4ae-488f-bde1-75fc15b54527
2024-08-27 10:02:03,305 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 10:02:03,305 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:03,313 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23
2024-08-27 10:02:03,325 - INFO - Verified VN network id 8 for VN 258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:03,326 - INFO - Verifications in API Server for VN ctest-vn-75369508 passed
2024-08-27 10:02:03,326 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:03,334 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23
2024-08-27 10:02:03,341 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23
2024-08-27 10:02:03,348 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/74984706-c4ae-488f-bde1-75fc15b54527
2024-08-27 10:02:03,360 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64148914', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2706363581897526199', 'uuid-lslong': '9730283066750304069'}, 'enable': 'true', 'created': '2024-08-27T10:02:01', 'last-modified': '2024-08-27T10:02:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950130'}
2024-08-27 10:02:03,367 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 10:02:03,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75369508 passed
2024-08-27 10:02:03,368 - DEBUG - ====Verifying policy data for ctest-vn-75369508 in API_Server ======
2024-08-27 10:02:03,368 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-08-27 10:02:03,373 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920
2024-08-27 10:02:03,385 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5
2024-08-27 10:02:03,463 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45
2024-08-27 10:02:03,472 - DEBUG - ==>Verifying data for policy with id: 5d3473c9-38f0-43e3-b756-9e446bfbb47c, fqn: ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264']
2024-08-27 10:02:03,472 - INFO - VN ctest-vn-75369508 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 10:02:03,472 - DEBUG - Verifying the vn in opserver
2024-08-27 10:02:03,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508 virtual network link through opserver 10.0.0.47
2024-08-27 10:02:03,472 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-08-27 10:02:03,768 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-08-27 10:02:03,837 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508?flat'}
2024-08-27 10:02:03,837 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508 is found in opserver
2024-08-27 10:02:03,849 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 10:02:03,857 - DEBUG - VRF ids for VN ctest-vn-75369508: {}
2024-08-27 10:02:03,857 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-08-27 10:02:03,864 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920
2024-08-27 10:02:03,877 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5
2024-08-27 10:02:03,945 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:03,955 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:03,963 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2
2024-08-27 10:02:03,970 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2
2024-08-27 10:02:03,977 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/fe883eea-df8a-4d38-9fb0-82c7baf1ba9e
2024-08-27 10:02:03,984 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 10:02:03,984 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:03,992 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2
2024-08-27 10:02:04,004 - INFO - Verified VN network id 9 for VN 7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:04,004 - INFO - Verifications in API Server for VN ctest-vn-46506311 passed
2024-08-27 10:02:04,004 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:04,014 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2
2024-08-27 10:02:04,022 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2
2024-08-27 10:02:04,029 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/fe883eea-df8a-4d38-9fb0-82c7baf1ba9e
2024-08-27 10:02:04,041 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64148914', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9144389029153884018', 'uuid-lslong': '10979465469214077139'}, 'enable': 'true', 'created': '2024-08-27T10:02:01', 'last-modified': '2024-08-27T10:02:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385558'}
2024-08-27 10:02:04,047 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 10:02:04,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46506311 passed
2024-08-27 10:02:04,047 - DEBUG - ====Verifying policy data for ctest-vn-46506311 in API_Server ======
2024-08-27 10:02:04,048 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-08-27 10:02:04,053 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920
2024-08-27 10:02:04,066 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5
2024-08-27 10:02:04,137 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3
2024-08-27 10:02:04,145 - DEBUG - ==>Verifying data for policy with id: 5d3473c9-38f0-43e3-b756-9e446bfbb47c, fqn: ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264']
2024-08-27 10:02:04,145 - INFO - VN ctest-vn-46506311 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 10:02:04,145 - DEBUG - Verifying the vn in opserver
2024-08-27 10:02:04,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311 virtual network link through opserver 10.0.0.47
2024-08-27 10:02:04,146 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-08-27 10:02:04,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311?flat'}
2024-08-27 10:02:04,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311 is found in opserver
2024-08-27 10:02:04,166 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 10:02:04,171 - DEBUG - VRF ids for VN ctest-vn-46506311: {}
2024-08-27 10:02:04,229 - DEBUG - Services list from nova: [