2024-08-26 16:26:08,898 - INFO - Domain Default found not creating
2024-08-26 16:26:09,078 - INFO - Project ctest-TestBasicPolicy-89298945 not found, creating it
2024-08-26 16:26:09,580 - INFO - Created Project:ctest-TestBasicPolicy-89298945, ID : d4eb68c3-b1e0-4959-aafb-6e5021b02a3e
2024-08-26 16:26:11,245 - INFO - ================================================================================
2024-08-26 16:26:11,246 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 16:26:11,246 - 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-26 16:26:11,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.5': '0'}} with
2024-08-26 16:26:11,500 - INFO - Initial checks done. Running the testcase now
2024-08-26 16:26:11,500 - INFO -
2024-08-26 16:26:12,116 - DEBUG - Response for create_network : {'network': {'id': '1ae82868-8c07-469f-aeb0-f81022a7bf92', 'name': 'ctest-vn-96032220', 'tenant_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'project_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-vn-96032220'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 16:26:12,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3789ffa-0dd6-4b51-acfc-edb13172a144', 'name': '', 'tenant_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'network_id': '1ae82868-8c07-469f-aeb0-f81022a7bf92', 'ip_version': 4, 'cidr': '138.52.28.128/26', 'allocation_pools': [{'start': '138.52.28.130', 'end': '138.52.28.190'}], 'gateway_ip': '138.52.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.52.28.130', 'tags': [], 'project_id': 'd4eb68c3b1e04959aafb6e5021b02a3e'}}
2024-08-26 16:26:12,350 - INFO - Created VN ctest-vn-96032220
2024-08-26 16:26:12,401 - DEBUG - VN ctest-vn-96032220 UUID is 1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:12,720 - DEBUG - Response for create_network : {'network': {'id': 'fd2674d7-af58-4777-8f67-f24eb37bd797', 'name': 'ctest-vn-22342477', 'tenant_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'project_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-vn-22342477'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 16:26:12,935 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2bbeb10-00c2-4a12-bb6c-8176692410e4', 'name': '', 'tenant_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'network_id': 'fd2674d7-af58-4777-8f67-f24eb37bd797', 'ip_version': 4, 'cidr': '12.94.176.64/26', 'allocation_pools': [{'start': '12.94.176.66', 'end': '12.94.176.126'}], 'gateway_ip': '12.94.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.94.176.66', 'tags': [], 'project_id': 'd4eb68c3b1e04959aafb6e5021b02a3e'}}
2024-08-26 16:26:12,955 - INFO - Created VN ctest-vn-22342477
2024-08-26 16:26:13,009 - DEBUG - VN ctest-vn-22342477 UUID is fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:13,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-96032220, 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-89298945:ctest-vn-22342477, 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-26 16:26:13,473 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ae82868-8c07-469f-aeb0-f81022a7bf92', 'name': 'ctest-vn-96032220', 'tenant_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'project_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3789ffa-0dd6-4b51-acfc-edb13172a144'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-vn-96032220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-policy-allow-all-45528741']], 'subnet_ipam': [{'subnet_cidr': '138.52.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 16:26:13,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd2674d7-af58-4777-8f67-f24eb37bd797', 'name': 'ctest-vn-22342477', 'tenant_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'project_id': 'd4eb68c3b1e04959aafb6e5021b02a3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2bbeb10-00c2-4a12-bb6c-8176692410e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-vn-22342477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-policy-allow-all-45528741']], 'subnet_ipam': [{'subnet_cidr': '12.94.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 16:26:13,893 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 16:26:14,253 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 16:26:14,287 - DEBUG - Requesting: http://10.0.0.29:8082/domain/94992447-d7f3-479c-be41-1b8a47f970b3
2024-08-26 16:26:14,310 - DEBUG - Requesting: http://10.0.0.29:8082/project/d4eb68c3-b1e0-4959-aafb-6e5021b02a3e
2024-08-26 16:26:14,388 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:14,399 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:14,408 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/478845be-b8d4-4e2c-a68f-2626075f4d08
2024-08-26 16:26:14,416 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/478845be-b8d4-4e2c-a68f-2626075f4d08
2024-08-26 16:26:14,426 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/7e0b9138-e4ae-43c9-a6ce-264edadbe43c
2024-08-26 16:26:14,434 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 16:26:14,434 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:14,445 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/478845be-b8d4-4e2c-a68f-2626075f4d08
2024-08-26 16:26:14,461 - INFO - Verified VN network id 8 for VN 1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:14,461 - INFO - Verifications in API Server for VN ctest-vn-96032220 passed
2024-08-26 16:26:14,461 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:14,473 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/478845be-b8d4-4e2c-a68f-2626075f4d08
2024-08-26 16:26:14,481 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/478845be-b8d4-4e2c-a68f-2626075f4d08
2024-08-26 16:26:14,488 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/7e0b9138-e4ae-43c9-a6ce-264edadbe43c
2024-08-26 16:26:14,501 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-96032220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89298945', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1938844069073995423', 'uuid-lslong': '12587833706685120402'}, 'enable': 'true', 'created': '2024-08-26T16:26:12', 'last-modified': '2024-08-26T16:26:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061981'}
2024-08-26 16:26:14,508 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 16:26:14,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96032220 passed
2024-08-26 16:26:14,509 - DEBUG - ====Verifying policy data for ctest-vn-96032220 in API_Server ======
2024-08-26 16:26:14,509 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 16:26:14,515 - DEBUG - Requesting: http://10.0.0.29:8082/domain/94992447-d7f3-479c-be41-1b8a47f970b3
2024-08-26 16:26:14,528 - DEBUG - Requesting: http://10.0.0.29:8082/project/d4eb68c3-b1e0-4959-aafb-6e5021b02a3e
2024-08-26 16:26:14,600 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1ae82868-8c07-469f-aeb0-f81022a7bf92
2024-08-26 16:26:14,610 - DEBUG - ==>Verifying data for policy with id: fca9732e-56a4-489f-9ea4-0d8bed68dabf, fqn: ['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-policy-allow-all-45528741']
2024-08-26 16:26:14,610 - INFO - VN ctest-vn-96032220 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 16:26:14,610 - DEBUG - Verifying the vn in opserver
2024-08-26 16:26:14,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-96032220 virtual network link through opserver 10.0.0.29
2024-08-26 16:26:14,610 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-26 16:26:14,956 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-26 16:26:15,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-96032220', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-96032220?flat'}
2024-08-26 16:26:15,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-96032220 is found in opserver
2024-08-26 16:26:15,056 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 16:26:15,063 - DEBUG - VRF ids for VN ctest-vn-96032220: {}
2024-08-26 16:26:15,063 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 16:26:15,070 - DEBUG - Requesting: http://10.0.0.29:8082/domain/94992447-d7f3-479c-be41-1b8a47f970b3
2024-08-26 16:26:15,084 - DEBUG - Requesting: http://10.0.0.29:8082/project/d4eb68c3-b1e0-4959-aafb-6e5021b02a3e
2024-08-26 16:26:15,164 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:15,180 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:15,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2258644c-6c8e-492b-9f5d-7690f2949710
2024-08-26 16:26:15,198 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2258644c-6c8e-492b-9f5d-7690f2949710
2024-08-26 16:26:15,207 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/be8f3c00-0927-458a-8653-3978226ee0f2
2024-08-26 16:26:15,214 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 16:26:15,214 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:15,222 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2258644c-6c8e-492b-9f5d-7690f2949710
2024-08-26 16:26:15,235 - INFO - Verified VN network id 9 for VN fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:15,235 - INFO - Verifications in API Server for VN ctest-vn-22342477 passed
2024-08-26 16:26:15,235 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:15,244 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2258644c-6c8e-492b-9f5d-7690f2949710
2024-08-26 16:26:15,252 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2258644c-6c8e-492b-9f5d-7690f2949710
2024-08-26 16:26:15,259 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/be8f3c00-0927-458a-8653-3978226ee0f2
2024-08-26 16:26:15,273 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-22342477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89298945', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18241395810419361655', 'uuid-lslong': '10333494289857501079'}, 'enable': 'true', 'created': '2024-08-26T16:26:12', 'last-modified': '2024-08-26T16:26:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566599'}
2024-08-26 16:26:15,281 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 16:26:15,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22342477 passed
2024-08-26 16:26:15,282 - DEBUG - ====Verifying policy data for ctest-vn-22342477 in API_Server ======
2024-08-26 16:26:15,282 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-08-26 16:26:15,289 - DEBUG - Requesting: http://10.0.0.29:8082/domain/94992447-d7f3-479c-be41-1b8a47f970b3
2024-08-26 16:26:15,303 - DEBUG - Requesting: http://10.0.0.29:8082/project/d4eb68c3-b1e0-4959-aafb-6e5021b02a3e
2024-08-26 16:26:15,384 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fd2674d7-af58-4777-8f67-f24eb37bd797
2024-08-26 16:26:15,395 - DEBUG - ==>Verifying data for policy with id: fca9732e-56a4-489f-9ea4-0d8bed68dabf, fqn: ['default-domain', 'ctest-TestBasicPolicy-89298945', 'ctest-policy-allow-all-45528741']
2024-08-26 16:26:15,395 - INFO - VN ctest-vn-22342477 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 16:26:15,396 - DEBUG - Verifying the vn in opserver
2024-08-26 16:26:15,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-22342477 virtual network link through opserver 10.0.0.29
2024-08-26 16:26:15,396 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-08-26 16:26:15,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-22342477', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-22342477?flat'}
2024-08-26 16:26:15,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89298945:ctest-vn-22342477 is found in opserver
2024-08-26 16:26:15,429 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 16:26:15,435 - DEBUG - VRF ids for VN ctest-vn-22342477: {}
2024-08-26 16:26:15,494 - DEBUG - Services list from nova: [