2024-09-03 10:37:30,321 - INFO - Domain Default found not creating
2024-09-03 10:37:30,485 - INFO - Project ctest-TestBasicPolicy-59533449 not found, creating it
2024-09-03 10:37:30,971 - INFO - Created Project:ctest-TestBasicPolicy-59533449, ID : c5e04d56-80cf-41d0-9056-640831d26803
2024-09-03 10:37:32,499 - INFO - ================================================================================
2024-09-03 10:37:32,499 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-03 10:37:32,499 - 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-03 10:37:32,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.7': '0'}} with
2024-09-03 10:37:32,754 - INFO - Initial checks done. Running the testcase now
2024-09-03 10:37:32,755 - INFO -
2024-09-03 10:37:33,314 - DEBUG - Response for create_network : {'network': {'id': '5182131e-9e58-4b5e-9791-e7e0e5168cdd', 'name': 'ctest-vn-56460650', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-56460650'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 10:37:33,496 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af0d377-59cc-43e7-8b99-f5cfea9d3fc7', 'name': '', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'network_id': '5182131e-9e58-4b5e-9791-e7e0e5168cdd', 'ip_version': 4, 'cidr': '153.28.151.128/26', 'allocation_pools': [{'start': '153.28.151.130', 'end': '153.28.151.190'}], 'gateway_ip': '153.28.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.28.151.130', 'tags': [], 'project_id': 'c5e04d5680cf41d09056640831d26803'}}
2024-09-03 10:37:33,526 - INFO - Created VN ctest-vn-56460650
2024-09-03 10:37:33,579 - DEBUG - VN ctest-vn-56460650 UUID is 5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:33,866 - DEBUG - Response for create_network : {'network': {'id': '45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c', 'name': 'ctest-vn-06136443', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-06136443'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 10:37:34,070 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d58720d-f884-4b5b-ac52-7bc464f0584e', 'name': '', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'network_id': '45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c', 'ip_version': 4, 'cidr': '103.76.146.192/26', 'allocation_pools': [{'start': '103.76.146.194', 'end': '103.76.146.254'}], 'gateway_ip': '103.76.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.76.146.194', 'tags': [], 'project_id': 'c5e04d5680cf41d09056640831d26803'}}
2024-09-03 10:37:34,089 - INFO - Created VN ctest-vn-06136443
2024-09-03 10:37:34,139 - DEBUG - VN ctest-vn-06136443 UUID is 45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:34,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650, 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-59533449:ctest-vn-06136443, 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-03 10:37:34,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5182131e-9e58-4b5e-9791-e7e0e5168cdd', 'name': 'ctest-vn-56460650', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3af0d377-59cc-43e7-8b99-f5cfea9d3fc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-56460650'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948']], 'subnet_ipam': [{'subnet_cidr': '153.28.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 10:37:34,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c', 'name': 'ctest-vn-06136443', 'tenant_id': 'c5e04d5680cf41d09056640831d26803', 'project_id': 'c5e04d5680cf41d09056640831d26803', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d58720d-f884-4b5b-ac52-7bc464f0584e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-vn-06136443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948']], 'subnet_ipam': [{'subnet_cidr': '103.76.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 10:37:34,983 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-03 10:37:35,287 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-03 10:37:35,320 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd
2024-09-03 10:37:35,336 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803
2024-09-03 10:37:35,409 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:35,421 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:35,431 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3
2024-09-03 10:37:35,440 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3
2024-09-03 10:37:35,448 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/939e1567-8777-4f3b-8032-583b52a79d9b
2024-09-03 10:37:35,457 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 10:37:35,457 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:35,467 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3
2024-09-03 10:37:35,483 - INFO - Verified VN network id 9 for VN 5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:35,483 - INFO - Verifications in API Server for VN ctest-vn-56460650 passed
2024-09-03 10:37:35,483 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:35,495 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3
2024-09-03 10:37:35,503 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9f1e779f-18b7-433d-833f-7b0a1b726ac3
2024-09-03 10:37:35,511 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/939e1567-8777-4f3b-8032-583b52a79d9b
2024-09-03 10:37:35,524 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59533449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5873277886271081310', 'uuid-lslong': '10921765524452314333'}, 'enable': 'true', 'created': '2024-09-03T10:37:33', 'last-modified': '2024-09-03T10:37:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997638'}
2024-09-03 10:37:35,531 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 10:37:35,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56460650 passed
2024-09-03 10:37:35,531 - DEBUG - ====Verifying policy data for ctest-vn-56460650 in API_Server ======
2024-09-03 10:37:35,531 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-03 10:37:35,537 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd
2024-09-03 10:37:35,550 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803
2024-09-03 10:37:35,618 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/5182131e-9e58-4b5e-9791-e7e0e5168cdd
2024-09-03 10:37:35,626 - DEBUG - ==>Verifying data for policy with id: 342a2235-5bc3-4188-afa0-10f064a530ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948']
2024-09-03 10:37:35,626 - INFO - VN ctest-vn-56460650 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 10:37:35,626 - DEBUG - Verifying the vn in opserver
2024-09-03 10:37:35,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650 virtual network link through opserver 10.0.0.31
2024-09-03 10:37:35,626 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-03 10:37:35,923 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-03 10:37:35,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650?flat'}
2024-09-03 10:37:35,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-56460650 is found in opserver
2024-09-03 10:37:36,002 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 10:37:36,009 - DEBUG - VRF ids for VN ctest-vn-56460650: {}
2024-09-03 10:37:36,009 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-03 10:37:36,016 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd
2024-09-03 10:37:36,029 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803
2024-09-03 10:37:36,102 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:36,114 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:36,123 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d
2024-09-03 10:37:36,130 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d
2024-09-03 10:37:36,137 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/cd5a2d78-6793-4fb5-8885-3afd7a77edb6
2024-09-03 10:37:36,144 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 10:37:36,144 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:36,152 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d
2024-09-03 10:37:36,164 - INFO - Verified VN network id 10 for VN 45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:36,165 - INFO - Verifications in API Server for VN ctest-vn-06136443 passed
2024-09-03 10:37:36,165 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:36,174 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d
2024-09-03 10:37:36,180 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e570fa60-a3f8-426d-a58d-48c086b8489d
2024-09-03 10:37:36,187 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/cd5a2d78-6793-4fb5-8885-3afd7a77edb6
2024-09-03 10:37:36,199 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59533449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5025936705270730431', 'uuid-lslong': '13713340123995043644'}, 'enable': 'true', 'created': '2024-09-03T10:37:33', 'last-modified': '2024-09-03T10:37:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439130'}
2024-09-03 10:37:36,205 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 10:37:36,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06136443 passed
2024-09-03 10:37:36,206 - DEBUG - ====Verifying policy data for ctest-vn-06136443 in API_Server ======
2024-09-03 10:37:36,206 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-03 10:37:36,212 - DEBUG - Requesting: http://10.0.0.31:8082/domain/16789ff1-1dda-40c6-a583-1e6812a9dafd
2024-09-03 10:37:36,225 - DEBUG - Requesting: http://10.0.0.31:8082/project/c5e04d56-80cf-41d0-9056-640831d26803
2024-09-03 10:37:36,299 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/45bfb6ce-0d42-4ebf-be4f-922fb6d5f73c
2024-09-03 10:37:36,309 - DEBUG - ==>Verifying data for policy with id: 342a2235-5bc3-4188-afa0-10f064a530ca, fqn: ['default-domain', 'ctest-TestBasicPolicy-59533449', 'ctest-policy-allow-all-02236948']
2024-09-03 10:37:36,309 - INFO - VN ctest-vn-06136443 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 10:37:36,309 - DEBUG - Verifying the vn in opserver
2024-09-03 10:37:36,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443 virtual network link through opserver 10.0.0.31
2024-09-03 10:37:36,309 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-03 10:37:36,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443?flat'}
2024-09-03 10:37:36,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59533449:ctest-vn-06136443 is found in opserver
2024-09-03 10:37:36,335 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 10:37:36,341 - DEBUG - VRF ids for VN ctest-vn-06136443: {}
2024-09-03 10:37:36,394 - DEBUG - Services list from nova: [