2024-09-19 02:41:20,759 - INFO - Domain Default found not creating
2024-09-19 02:41:21,059 - INFO - Project ctest-TestBasicPolicy-48998383 not found, creating it
2024-09-19 02:41:21,560 - INFO - Created Project:ctest-TestBasicPolicy-48998383, ID : 6e33e0a5-42ed-4cdd-9a38-22750be7efd4
2024-09-19 02:41:23,307 - INFO - ================================================================================
2024-09-19 02:41:23,307 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 02:41:23,307 - 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-19 02:41:23,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.12': '0'}} with
2024-09-19 02:41:23,563 - INFO - Initial checks done. Running the testcase now
2024-09-19 02:41:23,563 - INFO -
2024-09-19 02:41:24,204 - DEBUG - Response for create_network : {'network': {'id': '7e590c12-4a65-4000-829e-cd82fabe8eed', 'name': 'ctest-vn-44092196', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-44092196'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:41:24,411 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa67e671-fb2b-444d-8293-011fe8646ddd', 'name': '', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'network_id': '7e590c12-4a65-4000-829e-cd82fabe8eed', 'ip_version': 4, 'cidr': '109.155.6.64/26', 'allocation_pools': [{'start': '109.155.6.66', 'end': '109.155.6.126'}], 'gateway_ip': '109.155.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.155.6.66', 'tags': [], 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4'}}
2024-09-19 02:41:24,433 - INFO - Created VN ctest-vn-44092196
2024-09-19 02:41:24,492 - DEBUG - VN ctest-vn-44092196 UUID is 7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:24,825 - DEBUG - Response for create_network : {'network': {'id': 'cd1e9550-dd3d-4e53-a6e7-ba2392e2c495', 'name': 'ctest-vn-75433895', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-75433895'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:41:24,997 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f68b338-fd37-4eeb-b5be-8fed452b1a49', 'name': '', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'network_id': 'cd1e9550-dd3d-4e53-a6e7-ba2392e2c495', 'ip_version': 4, 'cidr': '62.90.98.192/26', 'allocation_pools': [{'start': '62.90.98.194', 'end': '62.90.98.254'}], 'gateway_ip': '62.90.98.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.90.98.194', 'tags': [], 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4'}}
2024-09-19 02:41:25,021 - INFO - Created VN ctest-vn-75433895
2024-09-19 02:41:25,080 - DEBUG - VN ctest-vn-75433895 UUID is cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:25,207 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196, 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-48998383:ctest-vn-75433895, 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-19 02:41:25,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e590c12-4a65-4000-829e-cd82fabe8eed', 'name': 'ctest-vn-44092196', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa67e671-fb2b-444d-8293-011fe8646ddd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-44092196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898']], 'subnet_ipam': [{'subnet_cidr': '109.155.6.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:41:25,813 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd1e9550-dd3d-4e53-a6e7-ba2392e2c495', 'name': 'ctest-vn-75433895', 'tenant_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'project_id': '6e33e0a542ed4cdd9a3822750be7efd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f68b338-fd37-4eeb-b5be-8fed452b1a49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-vn-75433895'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898']], 'subnet_ipam': [{'subnet_cidr': '62.90.98.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 02:41:25,972 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-09-19 02:41:26,326 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-09-19 02:41:26,361 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b
2024-09-19 02:41:26,379 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4
2024-09-19 02:41:26,466 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:26,483 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:26,498 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3
2024-09-19 02:41:26,509 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3
2024-09-19 02:41:26,519 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b608b1f6-8fc4-4e95-b2fd-1ad93d6a54c1
2024-09-19 02:41:26,527 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 02:41:26,527 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:26,541 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3
2024-09-19 02:41:26,564 - INFO - Verified VN network id 7 for VN 7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:26,564 - INFO - Verifications in API Server for VN ctest-vn-44092196 passed
2024-09-19 02:41:26,564 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:26,581 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3
2024-09-19 02:41:26,591 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/46dd7449-431f-43c0-98b4-10c1c4bcb5a3
2024-09-19 02:41:26,602 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b608b1f6-8fc4-4e95-b2fd-1ad93d6a54c1
2024-09-19 02:41:26,621 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48998383', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9104321394403262464', 'uuid-lslong': '9412186233687150317'}, 'enable': 'true', 'created': '2024-09-19T02:41:24', 'last-modified': '2024-09-19T02:41:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.102481'}
2024-09-19 02:41:26,630 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 02:41:26,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44092196 passed
2024-09-19 02:41:26,630 - DEBUG - ====Verifying policy data for ctest-vn-44092196 in API_Server ======
2024-09-19 02:41:26,630 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-09-19 02:41:26,636 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b
2024-09-19 02:41:26,652 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4
2024-09-19 02:41:26,745 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7e590c12-4a65-4000-829e-cd82fabe8eed
2024-09-19 02:41:26,763 - DEBUG - ==>Verifying data for policy with id: 5ddb15bd-7749-4258-9e7d-2a4b06100874, fqn: ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898']
2024-09-19 02:41:26,763 - INFO - VN ctest-vn-44092196 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 02:41:26,763 - DEBUG - Verifying the vn in opserver
2024-09-19 02:41:26,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196 virtual network link through opserver 10.0.0.24
2024-09-19 02:41:26,763 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-09-19 02:41:27,105 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-09-19 02:41:27,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196?flat'}
2024-09-19 02:41:27,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-44092196 is found in opserver
2024-09-19 02:41:27,188 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 02:41:27,195 - DEBUG - VRF ids for VN ctest-vn-44092196: {}
2024-09-19 02:41:27,195 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-09-19 02:41:27,203 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b
2024-09-19 02:41:27,220 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4
2024-09-19 02:41:27,309 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:27,327 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:27,342 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8
2024-09-19 02:41:27,352 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8
2024-09-19 02:41:27,363 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/96c93c80-c6ab-4771-99d8-eb0f4a63c5e0
2024-09-19 02:41:27,373 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 02:41:27,373 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:27,392 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8
2024-09-19 02:41:27,420 - INFO - Verified VN network id 8 for VN cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:27,420 - INFO - Verifications in API Server for VN ctest-vn-75433895 passed
2024-09-19 02:41:27,421 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:27,441 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8
2024-09-19 02:41:27,454 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d96c607e-29bc-4d94-85fd-89fb382460e8
2024-09-19 02:41:27,465 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/96c93c80-c6ab-4771-99d8-eb0f4a63c5e0
2024-09-19 02:41:27,481 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48998383', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14780415201618251347', 'uuid-lslong': '12026785991867155605'}, 'enable': 'true', 'created': '2024-09-19T02:41:24', 'last-modified': '2024-09-19T02:41:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.693513'}
2024-09-19 02:41:27,489 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 02:41:27,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75433895 passed
2024-09-19 02:41:27,490 - DEBUG - ====Verifying policy data for ctest-vn-75433895 in API_Server ======
2024-09-19 02:41:27,490 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-09-19 02:41:27,498 - DEBUG - Requesting: http://10.0.0.24:8082/domain/128d845f-d91b-4004-ab7b-1aaae47abd0b
2024-09-19 02:41:27,518 - DEBUG - Requesting: http://10.0.0.24:8082/project/6e33e0a5-42ed-4cdd-9a38-22750be7efd4
2024-09-19 02:41:27,609 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/cd1e9550-dd3d-4e53-a6e7-ba2392e2c495
2024-09-19 02:41:27,624 - DEBUG - ==>Verifying data for policy with id: 5ddb15bd-7749-4258-9e7d-2a4b06100874, fqn: ['default-domain', 'ctest-TestBasicPolicy-48998383', 'ctest-policy-allow-all-87085898']
2024-09-19 02:41:27,625 - INFO - VN ctest-vn-75433895 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 02:41:27,625 - DEBUG - Verifying the vn in opserver
2024-09-19 02:41:27,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895 virtual network link through opserver 10.0.0.24
2024-09-19 02:41:27,625 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-09-19 02:41:27,638 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895?flat'}
2024-09-19 02:41:27,638 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48998383:ctest-vn-75433895 is found in opserver
2024-09-19 02:41:27,652 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 02:41:27,658 - DEBUG - VRF ids for VN ctest-vn-75433895: {}
2024-09-19 02:41:27,721 - DEBUG - Services list from nova: [