2024-10-25 17:56:48,359 - INFO - Domain Default found not creating
2024-10-25 17:56:48,574 - INFO - Project ctest-TestBasicPolicy-29124102 not found, creating it
2024-10-25 17:56:49,192 - INFO - Created Project:ctest-TestBasicPolicy-29124102, ID : 7cb62991-e54a-4835-ac48-219b0ec1f377
2024-10-25 17:56:51,636 - INFO - ================================================================================
2024-10-25 17:56:51,637 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-25 17:56:51,637 - 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-10-25 17:56:51,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.11': '0'}} with
2024-10-25 17:56:51,896 - INFO - Initial checks done. Running the testcase now
2024-10-25 17:56:51,897 - INFO -
2024-10-25 17:56:52,550 - DEBUG - Response for create_network : {'network': {'id': '5e9a1114-ed86-4942-8f64-76f542615bc0', 'name': 'ctest-vn-14137049', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-14137049'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:56:52,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aaf80da1-c60c-44a3-9a62-8213f505d889', 'name': '', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'network_id': '5e9a1114-ed86-4942-8f64-76f542615bc0', 'ip_version': 4, 'cidr': '162.215.41.192/26', 'allocation_pools': [{'start': '162.215.41.194', 'end': '162.215.41.254'}], 'gateway_ip': '162.215.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.215.41.194', 'tags': [], 'project_id': '7cb62991e54a4835ac48219b0ec1f377'}}
2024-10-25 17:56:52,789 - INFO - Created VN ctest-vn-14137049
2024-10-25 17:56:52,849 - DEBUG - VN ctest-vn-14137049 UUID is 5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:53,248 - DEBUG - Response for create_network : {'network': {'id': '0c49d902-5126-4f96-a409-3204cee7fcf2', 'name': 'ctest-vn-23104212', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-23104212'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:56:53,491 - DEBUG - Response for create_subnet : {'subnet': {'id': '75abac86-fbe3-4aa9-b783-de6e2a7bf7e0', 'name': '', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'network_id': '0c49d902-5126-4f96-a409-3204cee7fcf2', 'ip_version': 4, 'cidr': '78.251.192.0/26', 'allocation_pools': [{'start': '78.251.192.2', 'end': '78.251.192.62'}], 'gateway_ip': '78.251.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.251.192.2', 'tags': [], 'project_id': '7cb62991e54a4835ac48219b0ec1f377'}}
2024-10-25 17:56:53,517 - INFO - Created VN ctest-vn-23104212
2024-10-25 17:56:53,577 - DEBUG - VN ctest-vn-23104212 UUID is 0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:53,730 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049, 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-29124102:ctest-vn-23104212, 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-10-25 17:56:54,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e9a1114-ed86-4942-8f64-76f542615bc0', 'name': 'ctest-vn-14137049', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aaf80da1-c60c-44a3-9a62-8213f505d889'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-14137049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645']], 'subnet_ipam': [{'subnet_cidr': '162.215.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:56:54,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c49d902-5126-4f96-a409-3204cee7fcf2', 'name': 'ctest-vn-23104212', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75abac86-fbe3-4aa9-b783-de6e2a7bf7e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-23104212'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645']], 'subnet_ipam': [{'subnet_cidr': '78.251.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:56:54,581 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-25 17:56:54,896 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-25 17:56:54,935 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36
2024-10-25 17:56:54,954 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377
2024-10-25 17:56:55,047 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:55,097 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:55,115 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce
2024-10-25 17:56:55,127 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce
2024-10-25 17:56:55,142 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/744ad55d-de20-43d0-ad16-fe617a51c0c5
2024-10-25 17:56:55,151 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 17:56:55,152 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:55,168 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce
2024-10-25 17:56:55,193 - INFO - Verified VN network id 8 for VN 5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:55,193 - INFO - Verifications in API Server for VN ctest-vn-14137049 passed
2024-10-25 17:56:55,193 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:55,212 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce
2024-10-25 17:56:55,223 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce
2024-10-25 17:56:55,235 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/744ad55d-de20-43d0-ad16-fe617a51c0c5
2024-10-25 17:56:55,251 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29124102', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6816779767560685890', 'uuid-lslong': '10332514240847502272'}, 'enable': 'true', 'created': '2024-10-25T17:56:52', 'last-modified': '2024-10-25T17:56:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.191643'}
2024-10-25 17:56:55,260 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 17:56:55,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14137049 passed
2024-10-25 17:56:55,261 - DEBUG - ====Verifying policy data for ctest-vn-14137049 in API_Server ======
2024-10-25 17:56:55,261 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-25 17:56:55,268 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36
2024-10-25 17:56:55,284 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377
2024-10-25 17:56:55,381 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0
2024-10-25 17:56:55,397 - DEBUG - ==>Verifying data for policy with id: 1f5c36bd-4a8b-41c3-b441-c1912b72d3c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645']
2024-10-25 17:56:55,397 - INFO - VN ctest-vn-14137049 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 17:56:55,397 - DEBUG - Verifying the vn in opserver
2024-10-25 17:56:55,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049 virtual network link through opserver 10.0.0.28
2024-10-25 17:56:55,397 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-10-25 17:56:55,707 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-10-25 17:56:55,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049?flat'}
2024-10-25 17:56:55,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049 is found in opserver
2024-10-25 17:56:55,799 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 17:56:55,806 - DEBUG - VRF ids for VN ctest-vn-14137049: {}
2024-10-25 17:56:55,806 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-25 17:56:55,814 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36
2024-10-25 17:56:55,851 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377
2024-10-25 17:56:55,943 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:55,963 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:55,979 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a
2024-10-25 17:56:55,990 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a
2024-10-25 17:56:56,002 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/0d2ff57d-8a26-44d8-bcd0-b21af3052a7a
2024-10-25 17:56:56,012 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 17:56:56,012 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:56,030 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a
2024-10-25 17:56:56,062 - INFO - Verified VN network id 9 for VN 0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:56,062 - INFO - Verifications in API Server for VN ctest-vn-23104212 passed
2024-10-25 17:56:56,062 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:56,079 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a
2024-10-25 17:56:56,090 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a
2024-10-25 17:56:56,102 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/0d2ff57d-8a26-44d8-bcd0-b21af3052a7a
2024-10-25 17:56:56,119 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29124102', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '885477405729640342', 'uuid-lslong': '11820033693243145458'}, 'enable': 'true', 'created': '2024-10-25T17:56:53', 'last-modified': '2024-10-25T17:56:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.780737'}
2024-10-25 17:56:56,126 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 17:56:56,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23104212 passed
2024-10-25 17:56:56,126 - DEBUG - ====Verifying policy data for ctest-vn-23104212 in API_Server ======
2024-10-25 17:56:56,127 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-10-25 17:56:56,134 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36
2024-10-25 17:56:56,150 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377
2024-10-25 17:56:56,256 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2
2024-10-25 17:56:56,277 - DEBUG - ==>Verifying data for policy with id: 1f5c36bd-4a8b-41c3-b441-c1912b72d3c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645']
2024-10-25 17:56:56,277 - INFO - VN ctest-vn-23104212 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 17:56:56,277 - DEBUG - Verifying the vn in opserver
2024-10-25 17:56:56,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212 virtual network link through opserver 10.0.0.28
2024-10-25 17:56:56,277 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-10-25 17:56:56,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212?flat'}
2024-10-25 17:56:56,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212 is found in opserver
2024-10-25 17:56:56,305 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 17:56:56,311 - DEBUG - VRF ids for VN ctest-vn-23104212: {}
2024-10-25 17:56:56,382 - DEBUG - Services list from nova: [