2024-11-11 11:38:19,219 - INFO - Domain Default found not creating
2024-11-11 11:38:19,387 - INFO - Project ctest-TestBasicPolicy-60018262 not found, creating it
2024-11-11 11:38:19,892 - INFO - Created Project:ctest-TestBasicPolicy-60018262, ID : 740ab96f-c2fc-4798-8e12-c7089a1b891c
2024-11-11 11:38:21,399 - INFO - ================================================================================
2024-11-11 11:38:21,399 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-11 11:38:21,400 - 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-11-11 11:38:21,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.8': '0'}} with
2024-11-11 11:38:21,663 - INFO - Initial checks done. Running the testcase now
2024-11-11 11:38:21,663 - INFO -
2024-11-11 11:38:22,239 - DEBUG - Response for create_network : {'network': {'id': 'f483324e-00a9-42bd-8d9d-b0bf21bac1b2', 'name': 'ctest-vn-20260611', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-20260611'], 'port_security_enabled': True, 'description': ''}}
2024-11-11 11:38:22,422 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4f4b6b3-f758-47da-88c7-c1facce24e60', 'name': '', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'network_id': 'f483324e-00a9-42bd-8d9d-b0bf21bac1b2', 'ip_version': 4, 'cidr': '182.38.214.0/26', 'allocation_pools': [{'start': '182.38.214.2', 'end': '182.38.214.62'}], 'gateway_ip': '182.38.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.38.214.2', 'tags': [], 'project_id': '740ab96fc2fc47988e12c7089a1b891c'}}
2024-11-11 11:38:22,442 - INFO - Created VN ctest-vn-20260611
2024-11-11 11:38:22,500 - DEBUG - VN ctest-vn-20260611 UUID is f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:22,825 - DEBUG - Response for create_network : {'network': {'id': 'f3778a1e-253f-4f26-aa1d-763c407aa9c3', 'name': 'ctest-vn-81939381', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-81939381'], 'port_security_enabled': True, 'description': ''}}
2024-11-11 11:38:22,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae6b6479-f35b-4187-88d6-ae3bcacdbba1', 'name': '', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'network_id': 'f3778a1e-253f-4f26-aa1d-763c407aa9c3', 'ip_version': 4, 'cidr': '96.61.161.128/26', 'allocation_pools': [{'start': '96.61.161.130', 'end': '96.61.161.190'}], 'gateway_ip': '96.61.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.61.161.130', 'tags': [], 'project_id': '740ab96fc2fc47988e12c7089a1b891c'}}
2024-11-11 11:38:23,006 - INFO - Created VN ctest-vn-81939381
2024-11-11 11:38:23,064 - DEBUG - VN ctest-vn-81939381 UUID is f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:23,192 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611, 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-60018262:ctest-vn-81939381, 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-11-11 11:38:23,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f483324e-00a9-42bd-8d9d-b0bf21bac1b2', 'name': 'ctest-vn-20260611', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4f4b6b3-f758-47da-88c7-c1facce24e60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-20260611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583']], 'subnet_ipam': [{'subnet_cidr': '182.38.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-11 11:38:23,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3778a1e-253f-4f26-aa1d-763c407aa9c3', 'name': 'ctest-vn-81939381', 'tenant_id': '740ab96fc2fc47988e12c7089a1b891c', 'project_id': '740ab96fc2fc47988e12c7089a1b891c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae6b6479-f35b-4187-88d6-ae3bcacdbba1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-vn-81939381'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583']], 'subnet_ipam': [{'subnet_cidr': '96.61.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-11 11:38:23,948 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-11 11:38:24,243 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-11 11:38:24,278 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef
2024-11-11 11:38:24,294 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c
2024-11-11 11:38:24,383 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:24,400 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:24,414 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480
2024-11-11 11:38:24,425 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480
2024-11-11 11:38:24,438 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1d565d27-6fb2-4974-a9aa-6ebfbb606e4f
2024-11-11 11:38:24,447 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-11 11:38:24,447 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:24,461 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480
2024-11-11 11:38:24,481 - INFO - Verified VN network id 8 for VN f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:24,481 - INFO - Verifications in API Server for VN ctest-vn-20260611 passed
2024-11-11 11:38:24,481 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:24,496 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480
2024-11-11 11:38:24,505 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ab2c2a4c-ed36-4b68-b5eb-5870bb9ce480
2024-11-11 11:38:24,514 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1d565d27-6fb2-4974-a9aa-6ebfbb606e4f
2024-11-11 11:38:24,527 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60018262', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17618981477803442877', 'uuid-lslong': '10204506665642541490'}, 'enable': 'true', 'created': '2024-11-11T11:38:22', 'last-modified': '2024-11-11T11:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041149'}
2024-11-11 11:38:24,534 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-11 11:38:24,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20260611 passed
2024-11-11 11:38:24,534 - DEBUG - ====Verifying policy data for ctest-vn-20260611 in API_Server ======
2024-11-11 11:38:24,534 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-11 11:38:24,541 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef
2024-11-11 11:38:24,553 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c
2024-11-11 11:38:24,640 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f483324e-00a9-42bd-8d9d-b0bf21bac1b2
2024-11-11 11:38:24,654 - DEBUG - ==>Verifying data for policy with id: 75ac8454-f321-49f7-a01d-ed91e42f9043, fqn: ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583']
2024-11-11 11:38:24,655 - INFO - VN ctest-vn-20260611 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-11 11:38:24,655 - DEBUG - Verifying the vn in opserver
2024-11-11 11:38:24,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611 virtual network link through opserver 10.0.0.42
2024-11-11 11:38:24,655 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-11-11 11:38:24,953 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-11-11 11:38:25,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611?flat'}
2024-11-11 11:38:25,021 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-20260611 is found in opserver
2024-11-11 11:38:25,033 - DEBUG - Do not have enough data to verify VN in agent
2024-11-11 11:38:25,038 - DEBUG - VRF ids for VN ctest-vn-20260611: {}
2024-11-11 11:38:25,038 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-11 11:38:25,044 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef
2024-11-11 11:38:25,056 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c
2024-11-11 11:38:25,133 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:25,150 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:25,171 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802
2024-11-11 11:38:25,181 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802
2024-11-11 11:38:25,191 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/913d0244-951c-4569-b1ed-7b7841b19717
2024-11-11 11:38:25,199 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-11 11:38:25,199 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:25,213 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802
2024-11-11 11:38:25,235 - INFO - Verified VN network id 9 for VN f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:25,235 - INFO - Verifications in API Server for VN ctest-vn-81939381 passed
2024-11-11 11:38:25,235 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:25,249 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802
2024-11-11 11:38:25,258 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/67bd7189-7ef4-4594-bfaf-ecc75c44b802
2024-11-11 11:38:25,269 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/913d0244-951c-4569-b1ed-7b7841b19717
2024-11-11 11:38:25,283 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60018262', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17543642735523614502', 'uuid-lslong': '12258083761924254147'}, 'enable': 'true', 'created': '2024-11-11T11:38:22', 'last-modified': '2024-11-11T11:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543011'}
2024-11-11 11:38:25,292 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-11 11:38:25,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81939381 passed
2024-11-11 11:38:25,292 - DEBUG - ====Verifying policy data for ctest-vn-81939381 in API_Server ======
2024-11-11 11:38:25,292 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-11 11:38:25,298 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ee4434e3-7e57-4ca4-aff2-60cffa6a39ef
2024-11-11 11:38:25,312 - DEBUG - Requesting: http://10.0.0.42:8082/project/740ab96f-c2fc-4798-8e12-c7089a1b891c
2024-11-11 11:38:25,401 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/f3778a1e-253f-4f26-aa1d-763c407aa9c3
2024-11-11 11:38:25,417 - DEBUG - ==>Verifying data for policy with id: 75ac8454-f321-49f7-a01d-ed91e42f9043, fqn: ['default-domain', 'ctest-TestBasicPolicy-60018262', 'ctest-policy-allow-all-15135583']
2024-11-11 11:38:25,417 - INFO - VN ctest-vn-81939381 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-11 11:38:25,417 - DEBUG - Verifying the vn in opserver
2024-11-11 11:38:25,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381 virtual network link through opserver 10.0.0.42
2024-11-11 11:38:25,417 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-11-11 11:38:25,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381?flat'}
2024-11-11 11:38:25,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60018262:ctest-vn-81939381 is found in opserver
2024-11-11 11:38:25,441 - DEBUG - Do not have enough data to verify VN in agent
2024-11-11 11:38:25,446 - DEBUG - VRF ids for VN ctest-vn-81939381: {}
2024-11-11 11:38:25,504 - DEBUG - Services list from nova: [