2025-02-03 17:18:48,085 - INFO - Domain Default found not creating
2025-02-03 17:18:48,271 - INFO - Project ctest-TestBasicPolicy-85358810 not found, creating it
2025-02-03 17:18:48,779 - INFO - Created Project:ctest-TestBasicPolicy-85358810, ID : bf830ac9-e169-4f51-91e3-4b7f70bbbcf3
2025-02-03 17:18:50,429 - INFO - ================================================================================
2025-02-03 17:18:50,429 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 17:18:50,429 - 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
2025-02-03 17:18:50,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.19': '0'}} with
2025-02-03 17:18:50,704 - INFO - Initial checks done. Running the testcase now
2025-02-03 17:18:50,704 - INFO -
2025-02-03 17:18:51,339 - DEBUG - Response for create_network : {'network': {'id': '2ff662a9-c7f6-4df8-806b-6bf89b5443b2', 'name': 'ctest-vn-89345384', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-89345384'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 17:18:51,537 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a1441c1-c778-4da0-a0b8-e1c79a94c820', 'name': '', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'network_id': '2ff662a9-c7f6-4df8-806b-6bf89b5443b2', 'ip_version': 4, 'cidr': '175.114.48.0/26', 'allocation_pools': [{'start': '175.114.48.2', 'end': '175.114.48.62'}], 'gateway_ip': '175.114.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.114.48.2', 'tags': [], 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3'}}
2025-02-03 17:18:51,560 - INFO - Created VN ctest-vn-89345384
2025-02-03 17:18:51,617 - DEBUG - VN ctest-vn-89345384 UUID is 2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:51,945 - DEBUG - Response for create_network : {'network': {'id': '7712341b-b6a5-432a-b9e6-42e5a1bd0320', 'name': 'ctest-vn-54001075', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-54001075'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 17:18:52,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '0885ceec-5c43-49f1-854b-a0c0bf603f86', 'name': '', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'network_id': '7712341b-b6a5-432a-b9e6-42e5a1bd0320', 'ip_version': 4, 'cidr': '30.110.104.128/26', 'allocation_pools': [{'start': '30.110.104.130', 'end': '30.110.104.190'}], 'gateway_ip': '30.110.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.110.104.130', 'tags': [], 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3'}}
2025-02-03 17:18:52,200 - INFO - Created VN ctest-vn-54001075
2025-02-03 17:18:52,253 - DEBUG - VN ctest-vn-54001075 UUID is 7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:52,377 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384, 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-85358810:ctest-vn-54001075, 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]
2025-02-03 17:18:52,717 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ff662a9-c7f6-4df8-806b-6bf89b5443b2', 'name': 'ctest-vn-89345384', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a1441c1-c778-4da0-a0b8-e1c79a94c820'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-89345384'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503']], 'subnet_ipam': [{'subnet_cidr': '175.114.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 17:18:52,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7712341b-b6a5-432a-b9e6-42e5a1bd0320', 'name': 'ctest-vn-54001075', 'tenant_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'project_id': 'bf830ac9e1694f5191e34b7f70bbbcf3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0885ceec-5c43-49f1-854b-a0c0bf603f86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-vn-54001075'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503']], 'subnet_ipam': [{'subnet_cidr': '30.110.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 17:18:53,138 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-03 17:18:53,491 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-03 17:18:53,524 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb
2025-02-03 17:18:53,542 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3
2025-02-03 17:18:53,622 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:53,635 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:53,646 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99
2025-02-03 17:18:53,654 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99
2025-02-03 17:18:53,663 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/7f53cf5d-c397-4e48-836e-fce4618662c4
2025-02-03 17:18:53,670 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 17:18:53,671 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:53,681 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99
2025-02-03 17:18:53,697 - INFO - Verified VN network id 7 for VN 2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:53,697 - INFO - Verifications in API Server for VN ctest-vn-89345384 passed
2025-02-03 17:18:53,697 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:53,709 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99
2025-02-03 17:18:53,718 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/bbbad378-aa7e-4ce0-a663-5818932eed99
2025-02-03 17:18:53,727 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/7f53cf5d-c397-4e48-836e-fce4618662c4
2025-02-03 17:18:53,745 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85358810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3456058245397237240', 'uuid-lslong': '9253608574864868274'}, 'enable': 'true', 'created': '2025-02-03T17:18:51', 'last-modified': '2025-02-03T17:18:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068932'}
2025-02-03 17:18:53,754 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 17:18:53,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89345384 passed
2025-02-03 17:18:53,755 - DEBUG - ====Verifying policy data for ctest-vn-89345384 in API_Server ======
2025-02-03 17:18:53,755 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-03 17:18:53,762 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb
2025-02-03 17:18:53,777 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3
2025-02-03 17:18:53,860 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2ff662a9-c7f6-4df8-806b-6bf89b5443b2
2025-02-03 17:18:53,873 - DEBUG - ==>Verifying data for policy with id: 3abda805-9735-4976-a42d-f7e19a65aa96, fqn: ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503']
2025-02-03 17:18:53,873 - INFO - VN ctest-vn-89345384 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 17:18:53,873 - DEBUG - Verifying the vn in opserver
2025-02-03 17:18:53,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384 virtual network link through opserver 10.0.0.32
2025-02-03 17:18:53,873 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-03 17:18:54,211 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-03 17:18:54,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384?flat'}
2025-02-03 17:18:54,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-89345384 is found in opserver
2025-02-03 17:18:54,288 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 17:18:54,294 - DEBUG - VRF ids for VN ctest-vn-89345384: {}
2025-02-03 17:18:54,294 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-03 17:18:54,301 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb
2025-02-03 17:18:54,315 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3
2025-02-03 17:18:54,391 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:54,408 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:54,422 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022
2025-02-03 17:18:54,433 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022
2025-02-03 17:18:54,444 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f48a75d7-e3d1-45c6-ae46-a644ba2bc849
2025-02-03 17:18:54,454 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 17:18:54,454 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:54,469 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022
2025-02-03 17:18:54,488 - INFO - Verified VN network id 8 for VN 7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:54,488 - INFO - Verifications in API Server for VN ctest-vn-54001075 passed
2025-02-03 17:18:54,488 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:54,500 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022
2025-02-03 17:18:54,510 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/40327cf0-2eb5-4acf-bb5c-c2c6b7147022
2025-02-03 17:18:54,521 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f48a75d7-e3d1-45c6-ae46-a644ba2bc849
2025-02-03 17:18:54,540 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85358810', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8579977533727261482', 'uuid-lslong': '13395467695688581920'}, 'enable': 'true', 'created': '2025-02-03T17:18:51', 'last-modified': '2025-02-03T17:18:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607017'}
2025-02-03 17:18:54,549 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 17:18:54,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54001075 passed
2025-02-03 17:18:54,549 - DEBUG - ====Verifying policy data for ctest-vn-54001075 in API_Server ======
2025-02-03 17:18:54,549 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-02-03 17:18:54,558 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3b7c3685-6bdc-4a7a-b1e9-cf4ee1420fcb
2025-02-03 17:18:54,573 - DEBUG - Requesting: http://10.0.0.32:8082/project/bf830ac9-e169-4f51-91e3-4b7f70bbbcf3
2025-02-03 17:18:54,655 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7712341b-b6a5-432a-b9e6-42e5a1bd0320
2025-02-03 17:18:54,668 - DEBUG - ==>Verifying data for policy with id: 3abda805-9735-4976-a42d-f7e19a65aa96, fqn: ['default-domain', 'ctest-TestBasicPolicy-85358810', 'ctest-policy-allow-all-12759503']
2025-02-03 17:18:54,668 - INFO - VN ctest-vn-54001075 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 17:18:54,668 - DEBUG - Verifying the vn in opserver
2025-02-03 17:18:54,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075 virtual network link through opserver 10.0.0.32
2025-02-03 17:18:54,668 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-02-03 17:18:54,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075?flat'}
2025-02-03 17:18:54,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85358810:ctest-vn-54001075 is found in opserver
2025-02-03 17:18:54,694 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 17:18:54,700 - DEBUG - VRF ids for VN ctest-vn-54001075: {}
2025-02-03 17:18:54,764 - DEBUG - Services list from nova: [