2025-06-20 07:58:45,696 - INFO - Domain Default found not creating
2025-06-20 07:58:45,853 - INFO - Project ctest-TestBasicPolicy-57138129 not found, creating it
2025-06-20 07:58:46,323 - INFO - Created Project:ctest-TestBasicPolicy-57138129, ID : 6c44065d-006b-4aaa-b947-0853f568ac6a
2025-06-20 07:58:47,771 - INFO - ================================================================================
2025-06-20 07:58:47,773 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 07:58:47,773 - 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-06-20 07:58:48,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-20 07:58:48,030 - INFO - Initial checks done. Running the testcase now
2025-06-20 07:58:48,030 - INFO -
2025-06-20 07:58:48,588 - DEBUG - Response for create_network : {'network': {'id': 'a68ceebc-69e4-410d-b26f-bf79d693ccd4', 'name': 'ctest-vn-65235311', 'tenant_id': '6c44065d006b4aaab9470853f568ac6a', 'project_id': '6c44065d006b4aaab9470853f568ac6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-vn-65235311'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 07:58:48,814 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad7fe6ec-0578-4ba5-8548-64794edebf3d', 'name': '', 'tenant_id': '6c44065d006b4aaab9470853f568ac6a', 'network_id': 'a68ceebc-69e4-410d-b26f-bf79d693ccd4', 'ip_version': 4, 'cidr': '134.58.126.0/26', 'allocation_pools': [{'start': '134.58.126.2', 'end': '134.58.126.62'}], 'gateway_ip': '134.58.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.58.126.2', 'tags': [], 'project_id': '6c44065d006b4aaab9470853f568ac6a'}}
2025-06-20 07:58:48,836 - INFO - Created VN ctest-vn-65235311
2025-06-20 07:58:48,889 - DEBUG - VN ctest-vn-65235311 UUID is a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:49,202 - DEBUG - Response for create_network : {'network': {'id': 'a9c33d7e-1e68-482c-8481-f68bf8492a1a', 'name': 'ctest-vn-35189324', 'tenant_id': '6c44065d006b4aaab9470853f568ac6a', 'project_id': '6c44065d006b4aaab9470853f568ac6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-vn-35189324'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 07:58:49,441 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa3c6fc6-d77b-4ec9-be9d-a75526b5d037', 'name': '', 'tenant_id': '6c44065d006b4aaab9470853f568ac6a', 'network_id': 'a9c33d7e-1e68-482c-8481-f68bf8492a1a', 'ip_version': 4, 'cidr': '166.99.118.128/26', 'allocation_pools': [{'start': '166.99.118.130', 'end': '166.99.118.190'}], 'gateway_ip': '166.99.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.99.118.130', 'tags': [], 'project_id': '6c44065d006b4aaab9470853f568ac6a'}}
2025-06-20 07:58:49,458 - INFO - Created VN ctest-vn-35189324
2025-06-20 07:58:49,513 - DEBUG - VN ctest-vn-35189324 UUID is a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:49,631 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-65235311, 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-57138129:ctest-vn-35189324, 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-06-20 07:58:49,941 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a68ceebc-69e4-410d-b26f-bf79d693ccd4', 'name': 'ctest-vn-65235311', 'tenant_id': '6c44065d006b4aaab9470853f568ac6a', 'project_id': '6c44065d006b4aaab9470853f568ac6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad7fe6ec-0578-4ba5-8548-64794edebf3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-vn-65235311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-policy-allow-all-85784173']], 'subnet_ipam': [{'subnet_cidr': '134.58.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 07:58:50,271 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9c33d7e-1e68-482c-8481-f68bf8492a1a', 'name': 'ctest-vn-35189324', 'tenant_id': '6c44065d006b4aaab9470853f568ac6a', 'project_id': '6c44065d006b4aaab9470853f568ac6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa3c6fc6-d77b-4ec9-be9d-a75526b5d037'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-vn-35189324'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-policy-allow-all-85784173']], 'subnet_ipam': [{'subnet_cidr': '166.99.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 07:58:50,457 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-20 07:58:50,761 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-20 07:58:50,791 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dea5d9cb-8535-4e67-a9ab-6740332bfc32
2025-06-20 07:58:50,806 - DEBUG - Requesting: http://10.0.0.254:8082/project/6c44065d-006b-4aaa-b947-0853f568ac6a
2025-06-20 07:58:50,884 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:50,895 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:50,905 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9656fd9-596d-49a7-8e8a-ccd0922dd82c
2025-06-20 07:58:50,913 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9656fd9-596d-49a7-8e8a-ccd0922dd82c
2025-06-20 07:58:50,920 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2682d0ca-ac67-4e5d-b9f7-f54aec1f412e
2025-06-20 07:58:50,926 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 07:58:50,926 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:50,934 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9656fd9-596d-49a7-8e8a-ccd0922dd82c
2025-06-20 07:58:50,948 - INFO - Verified VN network id 9 for VN a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:50,948 - INFO - Verifications in API Server for VN ctest-vn-65235311 passed
2025-06-20 07:58:50,949 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:50,959 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9656fd9-596d-49a7-8e8a-ccd0922dd82c
2025-06-20 07:58:50,966 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9656fd9-596d-49a7-8e8a-ccd0922dd82c
2025-06-20 07:58:50,974 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2682d0ca-ac67-4e5d-b9f7-f54aec1f412e
2025-06-20 07:58:50,987 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-65235311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57138129', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12001229600033358093', 'uuid-lslong': '12857705991178013908'}, 'enable': 'true', 'created': '2025-06-20T07:58:48', 'last-modified': '2025-06-20T07:58:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068849'}
2025-06-20 07:58:50,994 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 07:58:50,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65235311 passed
2025-06-20 07:58:50,994 - DEBUG - ====Verifying policy data for ctest-vn-65235311 in API_Server ======
2025-06-20 07:58:50,994 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-20 07:58:51,000 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dea5d9cb-8535-4e67-a9ab-6740332bfc32
2025-06-20 07:58:51,013 - DEBUG - Requesting: http://10.0.0.254:8082/project/6c44065d-006b-4aaa-b947-0853f568ac6a
2025-06-20 07:58:51,088 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a68ceebc-69e4-410d-b26f-bf79d693ccd4
2025-06-20 07:58:51,098 - DEBUG - ==>Verifying data for policy with id: 3a2bd35d-657c-4b39-9906-576eafa67f1a, fqn: ['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-policy-allow-all-85784173']
2025-06-20 07:58:51,098 - INFO - VN ctest-vn-65235311 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 07:58:51,098 - DEBUG - Verifying the vn in opserver
2025-06-20 07:58:51,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-65235311 virtual network link through opserver 10.0.0.254
2025-06-20 07:58:51,099 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-20 07:58:51,395 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-20 07:58:51,456 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-65235311', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-65235311?flat'}
2025-06-20 07:58:51,457 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-65235311 is found in opserver
2025-06-20 07:58:51,468 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 07:58:51,473 - DEBUG - VRF ids for VN ctest-vn-65235311: {}
2025-06-20 07:58:51,473 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-20 07:58:51,479 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dea5d9cb-8535-4e67-a9ab-6740332bfc32
2025-06-20 07:58:51,491 - DEBUG - Requesting: http://10.0.0.254:8082/project/6c44065d-006b-4aaa-b947-0853f568ac6a
2025-06-20 07:58:51,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:51,579 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:51,588 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b72f5e5-1608-462f-b57d-1462b5cfaf13
2025-06-20 07:58:51,596 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b72f5e5-1608-462f-b57d-1462b5cfaf13
2025-06-20 07:58:51,602 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/63e39c50-b6dd-42e9-a859-dc454503ea3f
2025-06-20 07:58:51,608 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 07:58:51,609 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:51,617 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b72f5e5-1608-462f-b57d-1462b5cfaf13
2025-06-20 07:58:51,634 - INFO - Verified VN network id 10 for VN a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:51,634 - INFO - Verifications in API Server for VN ctest-vn-35189324 passed
2025-06-20 07:58:51,634 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:51,646 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b72f5e5-1608-462f-b57d-1462b5cfaf13
2025-06-20 07:58:51,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9b72f5e5-1608-462f-b57d-1462b5cfaf13
2025-06-20 07:58:51,661 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/63e39c50-b6dd-42e9-a859-dc454503ea3f
2025-06-20 07:58:51,675 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-35189324', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57138129', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12232688624753723436', 'uuid-lslong': '9548183766028593690'}, 'enable': 'true', 'created': '2025-06-20T07:58:49', 'last-modified': '2025-06-20T07:58:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435092'}
2025-06-20 07:58:51,681 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 07:58:51,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35189324 passed
2025-06-20 07:58:51,682 - DEBUG - ====Verifying policy data for ctest-vn-35189324 in API_Server ======
2025-06-20 07:58:51,682 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-20 07:58:51,687 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dea5d9cb-8535-4e67-a9ab-6740332bfc32
2025-06-20 07:58:51,699 - DEBUG - Requesting: http://10.0.0.254:8082/project/6c44065d-006b-4aaa-b947-0853f568ac6a
2025-06-20 07:58:51,775 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a9c33d7e-1e68-482c-8481-f68bf8492a1a
2025-06-20 07:58:51,786 - DEBUG - ==>Verifying data for policy with id: 3a2bd35d-657c-4b39-9906-576eafa67f1a, fqn: ['default-domain', 'ctest-TestBasicPolicy-57138129', 'ctest-policy-allow-all-85784173']
2025-06-20 07:58:51,786 - INFO - VN ctest-vn-35189324 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 07:58:51,786 - DEBUG - Verifying the vn in opserver
2025-06-20 07:58:51,786 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-35189324 virtual network link through opserver 10.0.0.254
2025-06-20 07:58:51,787 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-20 07:58:51,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-35189324', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-35189324?flat'}
2025-06-20 07:58:51,799 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57138129:ctest-vn-35189324 is found in opserver
2025-06-20 07:58:51,811 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 07:58:51,816 - DEBUG - VRF ids for VN ctest-vn-35189324: {}
2025-06-20 07:58:51,886 - DEBUG - Services list from nova: [