2025-04-23 16:55:55,164 - INFO - Domain Default found not creating
2025-04-23 16:55:55,300 - INFO - Project ctest-TestBasicPolicy-55177457 not found, creating it
2025-04-23 16:55:55,808 - INFO - Created Project:ctest-TestBasicPolicy-55177457, ID : 539bcf90-e3c2-43a1-b135-bec0ec088a9f
2025-04-23 16:55:56,981 - INFO - ================================================================================
2025-04-23 16:55:56,981 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 16:55:56,981 - 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-04-23 16:55:57,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-04-23 16:55:57,236 - INFO - Initial checks done. Running the testcase now
2025-04-23 16:55:57,236 - INFO -
2025-04-23 16:55:57,697 - DEBUG - Response for create_network : {'network': {'id': 'd9413dce-4e0c-49e4-893a-0f9b50791682', 'name': 'ctest-vn-51813672', 'tenant_id': '539bcf90e3c243a1b135bec0ec088a9f', 'project_id': '539bcf90e3c243a1b135bec0ec088a9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-vn-51813672'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:55:57,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fc75b45-0c98-4dfe-9b31-fdd53d5db982', 'name': '', 'tenant_id': '539bcf90e3c243a1b135bec0ec088a9f', 'network_id': 'd9413dce-4e0c-49e4-893a-0f9b50791682', 'ip_version': 4, 'cidr': '204.82.118.128/26', 'allocation_pools': [{'start': '204.82.118.130', 'end': '204.82.118.190'}], 'gateway_ip': '204.82.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.82.118.130', 'tags': [], 'project_id': '539bcf90e3c243a1b135bec0ec088a9f'}}
2025-04-23 16:55:57,850 - INFO - Created VN ctest-vn-51813672
2025-04-23 16:55:57,900 - DEBUG - VN ctest-vn-51813672 UUID is d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:58,172 - DEBUG - Response for create_network : {'network': {'id': 'b941fce3-42d7-41f0-88b7-a6228d1dbf16', 'name': 'ctest-vn-68221467', 'tenant_id': '539bcf90e3c243a1b135bec0ec088a9f', 'project_id': '539bcf90e3c243a1b135bec0ec088a9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-vn-68221467'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:55:58,310 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9983778-d265-4a6f-b1e0-998f66c8ba3c', 'name': '', 'tenant_id': '539bcf90e3c243a1b135bec0ec088a9f', 'network_id': 'b941fce3-42d7-41f0-88b7-a6228d1dbf16', 'ip_version': 4, 'cidr': '103.149.43.128/26', 'allocation_pools': [{'start': '103.149.43.130', 'end': '103.149.43.190'}], 'gateway_ip': '103.149.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.149.43.130', 'tags': [], 'project_id': '539bcf90e3c243a1b135bec0ec088a9f'}}
2025-04-23 16:55:58,324 - INFO - Created VN ctest-vn-68221467
2025-04-23 16:55:58,380 - DEBUG - VN ctest-vn-68221467 UUID is b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:55:58,516 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-51813672, 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-55177457:ctest-vn-68221467, 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-04-23 16:55:58,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9413dce-4e0c-49e4-893a-0f9b50791682', 'name': 'ctest-vn-51813672', 'tenant_id': '539bcf90e3c243a1b135bec0ec088a9f', 'project_id': '539bcf90e3c243a1b135bec0ec088a9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2fc75b45-0c98-4dfe-9b31-fdd53d5db982'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-vn-51813672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-policy-allow-all-34315411']], 'subnet_ipam': [{'subnet_cidr': '204.82.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:55:58,991 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b941fce3-42d7-41f0-88b7-a6228d1dbf16', 'name': 'ctest-vn-68221467', 'tenant_id': '539bcf90e3c243a1b135bec0ec088a9f', 'project_id': '539bcf90e3c243a1b135bec0ec088a9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9983778-d265-4a6f-b1e0-998f66c8ba3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-vn-68221467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-policy-allow-all-34315411']], 'subnet_ipam': [{'subnet_cidr': '103.149.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 16:55:59,136 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 16:55:59,398 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 16:55:59,421 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdab1768-b50e-4276-9207-70ad213577e5
2025-04-23 16:55:59,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/539bcf90-e3c2-43a1-b135-bec0ec088a9f
2025-04-23 16:55:59,505 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:59,515 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:59,523 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3acfce33-a3c6-4c75-a3f0-3f9100da703e
2025-04-23 16:55:59,529 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3acfce33-a3c6-4c75-a3f0-3f9100da703e
2025-04-23 16:55:59,534 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/64a7f107-6ea1-48d6-a105-77edced5331c
2025-04-23 16:55:59,540 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 16:55:59,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:59,547 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3acfce33-a3c6-4c75-a3f0-3f9100da703e
2025-04-23 16:55:59,558 - INFO - Verified VN network id 9 for VN d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:59,558 - INFO - Verifications in API Server for VN ctest-vn-51813672 passed
2025-04-23 16:55:59,558 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:59,565 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3acfce33-a3c6-4c75-a3f0-3f9100da703e
2025-04-23 16:55:59,571 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3acfce33-a3c6-4c75-a3f0-3f9100da703e
2025-04-23 16:55:59,576 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/64a7f107-6ea1-48d6-a105-77edced5331c
2025-04-23 16:55:59,585 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-51813672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55177457', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15654861735998540260', 'uuid-lslong': '9888233091589805698'}, 'enable': 'true', 'created': '2025-04-23T16:55:57', 'last-modified': '2025-04-23T16:55:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.818627'}
2025-04-23 16:55:59,591 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 16:55:59,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51813672 passed
2025-04-23 16:55:59,592 - DEBUG - ====Verifying policy data for ctest-vn-51813672 in API_Server ======
2025-04-23 16:55:59,592 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 16:55:59,596 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdab1768-b50e-4276-9207-70ad213577e5
2025-04-23 16:55:59,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/539bcf90-e3c2-43a1-b135-bec0ec088a9f
2025-04-23 16:55:59,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d9413dce-4e0c-49e4-893a-0f9b50791682
2025-04-23 16:55:59,682 - DEBUG - ==>Verifying data for policy with id: e86fc87e-cdf5-4caa-a0c8-1e36d01b9650, fqn: ['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-policy-allow-all-34315411']
2025-04-23 16:55:59,682 - INFO - VN ctest-vn-51813672 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 16:55:59,682 - DEBUG - Verifying the vn in opserver
2025-04-23 16:55:59,682 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-51813672 virtual network link through opserver 10.0.0.38
2025-04-23 16:55:59,682 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 16:55:59,941 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 16:55:59,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-51813672', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-51813672?flat'}
2025-04-23 16:55:59,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-51813672 is found in opserver
2025-04-23 16:55:59,995 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 16:55:59,999 - DEBUG - VRF ids for VN ctest-vn-51813672: {}
2025-04-23 16:55:59,999 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 16:56:00,006 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdab1768-b50e-4276-9207-70ad213577e5
2025-04-23 16:56:00,015 - DEBUG - Requesting: http://10.0.0.38:8082/project/539bcf90-e3c2-43a1-b135-bec0ec088a9f
2025-04-23 16:56:00,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:56:00,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:56:00,099 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df8e9e8e-dcd3-4e28-be0d-3615df7f7595
2025-04-23 16:56:00,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df8e9e8e-dcd3-4e28-be0d-3615df7f7595
2025-04-23 16:56:00,110 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e408e54-3f16-477b-9af4-d2308584b952
2025-04-23 16:56:00,115 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 16:56:00,115 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:56:00,122 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df8e9e8e-dcd3-4e28-be0d-3615df7f7595
2025-04-23 16:56:00,133 - INFO - Verified VN network id 10 for VN b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:56:00,133 - INFO - Verifications in API Server for VN ctest-vn-68221467 passed
2025-04-23 16:56:00,133 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:56:00,141 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df8e9e8e-dcd3-4e28-be0d-3615df7f7595
2025-04-23 16:56:00,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df8e9e8e-dcd3-4e28-be0d-3615df7f7595
2025-04-23 16:56:00,151 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e408e54-3f16-477b-9af4-d2308584b952
2025-04-23 16:56:00,164 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-68221467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55177457', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13349228823512039920', 'uuid-lslong': '9851525377222885142'}, 'enable': 'true', 'created': '2025-04-23T16:55:58', 'last-modified': '2025-04-23T16:55:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.188923'}
2025-04-23 16:56:00,170 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 16:56:00,170 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68221467 passed
2025-04-23 16:56:00,170 - DEBUG - ====Verifying policy data for ctest-vn-68221467 in API_Server ======
2025-04-23 16:56:00,170 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 16:56:00,175 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bdab1768-b50e-4276-9207-70ad213577e5
2025-04-23 16:56:00,184 - DEBUG - Requesting: http://10.0.0.38:8082/project/539bcf90-e3c2-43a1-b135-bec0ec088a9f
2025-04-23 16:56:00,252 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b941fce3-42d7-41f0-88b7-a6228d1dbf16
2025-04-23 16:56:00,260 - DEBUG - ==>Verifying data for policy with id: e86fc87e-cdf5-4caa-a0c8-1e36d01b9650, fqn: ['default-domain', 'ctest-TestBasicPolicy-55177457', 'ctest-policy-allow-all-34315411']
2025-04-23 16:56:00,260 - INFO - VN ctest-vn-68221467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 16:56:00,260 - DEBUG - Verifying the vn in opserver
2025-04-23 16:56:00,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-68221467 virtual network link through opserver 10.0.0.38
2025-04-23 16:56:00,260 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 16:56:00,269 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-68221467', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-68221467?flat'}
2025-04-23 16:56:00,269 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55177457:ctest-vn-68221467 is found in opserver
2025-04-23 16:56:00,277 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 16:56:00,281 - DEBUG - VRF ids for VN ctest-vn-68221467: {}
2025-04-23 16:56:00,326 - DEBUG - Services list from nova: [