2025-01-04 21:31:38,864 - INFO - Domain Default found not creating
2025-01-04 21:31:39,064 - INFO - Project ctest-TestBasicPolicy-31996070 not found, creating it
2025-01-04 21:31:39,601 - INFO - Created Project:ctest-TestBasicPolicy-31996070, ID : c3cff154-8f6e-4eeb-8f01-b4cf28382d5d
2025-01-04 21:31:41,341 - INFO - ================================================================================
2025-01-04 21:31:41,342 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-04 21:31:41,342 - 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-01-04 21:31:41,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.8': '0'}} with
2025-01-04 21:31:41,618 - INFO - Initial checks done. Running the testcase now
2025-01-04 21:31:41,618 - INFO -
2025-01-04 21:31:42,237 - DEBUG - Response for create_network : {'network': {'id': 'a4d70f1f-ab62-4a4c-845c-03d839d2b92f', 'name': 'ctest-vn-38741352', 'tenant_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'project_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-vn-38741352'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 21:31:42,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '894e3b61-b634-4954-b5c7-2b0cd47f743b', 'name': '', 'tenant_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'network_id': 'a4d70f1f-ab62-4a4c-845c-03d839d2b92f', 'ip_version': 4, 'cidr': '5.245.172.192/26', 'allocation_pools': [{'start': '5.245.172.194', 'end': '5.245.172.254'}], 'gateway_ip': '5.245.172.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.245.172.194', 'tags': [], 'project_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d'}}
2025-01-04 21:31:42,536 - INFO - Created VN ctest-vn-38741352
2025-01-04 21:31:42,593 - DEBUG - VN ctest-vn-38741352 UUID is a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:42,955 - DEBUG - Response for create_network : {'network': {'id': '4c181bd8-3d29-459c-9680-fb29c5b4e02b', 'name': 'ctest-vn-40148069', 'tenant_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'project_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-vn-40148069'], 'port_security_enabled': True, 'description': ''}}
2025-01-04 21:31:43,215 - DEBUG - Response for create_subnet : {'subnet': {'id': '528b5a8b-c2f2-4564-b809-50e9886935d8', 'name': '', 'tenant_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'network_id': '4c181bd8-3d29-459c-9680-fb29c5b4e02b', 'ip_version': 4, 'cidr': '175.247.110.128/26', 'allocation_pools': [{'start': '175.247.110.130', 'end': '175.247.110.190'}], 'gateway_ip': '175.247.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.247.110.130', 'tags': [], 'project_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d'}}
2025-01-04 21:31:43,247 - INFO - Created VN ctest-vn-40148069
2025-01-04 21:31:43,305 - DEBUG - VN ctest-vn-40148069 UUID is 4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:43,436 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-38741352, 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-31996070:ctest-vn-40148069, 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-01-04 21:31:43,753 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4d70f1f-ab62-4a4c-845c-03d839d2b92f', 'name': 'ctest-vn-38741352', 'tenant_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'project_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['894e3b61-b634-4954-b5c7-2b0cd47f743b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-vn-38741352'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-policy-allow-all-13149519']], 'subnet_ipam': [{'subnet_cidr': '5.245.172.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 21:31:44,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c181bd8-3d29-459c-9680-fb29c5b4e02b', 'name': 'ctest-vn-40148069', 'tenant_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'project_id': 'c3cff1548f6e4eeb8f01b4cf28382d5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['528b5a8b-c2f2-4564-b809-50e9886935d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-vn-40148069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-policy-allow-all-13149519']], 'subnet_ipam': [{'subnet_cidr': '175.247.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-04 21:31:44,197 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-01-04 21:31:44,497 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-01-04 21:31:44,545 - DEBUG - Requesting: http://10.0.0.54:8082/domain/734335af-f8cb-4cf6-91cc-546b65e52802
2025-01-04 21:31:44,564 - DEBUG - Requesting: http://10.0.0.54:8082/project/c3cff154-8f6e-4eeb-8f01-b4cf28382d5d
2025-01-04 21:31:44,657 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:44,676 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:44,694 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/72938b01-fa29-4d7d-885e-f3c54b8c8da2
2025-01-04 21:31:44,706 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/72938b01-fa29-4d7d-885e-f3c54b8c8da2
2025-01-04 21:31:44,718 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/fa981987-08f5-4dc9-9c48-0b275e471f7c
2025-01-04 21:31:44,728 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 21:31:44,728 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:44,740 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/72938b01-fa29-4d7d-885e-f3c54b8c8da2
2025-01-04 21:31:44,759 - INFO - Verified VN network id 8 for VN a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:44,759 - INFO - Verifications in API Server for VN ctest-vn-38741352 passed
2025-01-04 21:31:44,759 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:44,771 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/72938b01-fa29-4d7d-885e-f3c54b8c8da2
2025-01-04 21:31:44,781 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/72938b01-fa29-4d7d-885e-f3c54b8c8da2
2025-01-04 21:31:44,792 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/fa981987-08f5-4dc9-9c48-0b275e471f7c
2025-01-04 21:31:44,806 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-38741352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31996070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11877979170906720844', 'uuid-lslong': '9537502338081798447'}, 'enable': 'true', 'created': '2025-01-04T21:31:42', 'last-modified': '2025-01-04T21:31:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076020'}
2025-01-04 21:31:44,813 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-04 21:31:44,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38741352 passed
2025-01-04 21:31:44,814 - DEBUG - ====Verifying policy data for ctest-vn-38741352 in API_Server ======
2025-01-04 21:31:44,814 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-01-04 21:31:44,820 - DEBUG - Requesting: http://10.0.0.54:8082/domain/734335af-f8cb-4cf6-91cc-546b65e52802
2025-01-04 21:31:44,832 - DEBUG - Requesting: http://10.0.0.54:8082/project/c3cff154-8f6e-4eeb-8f01-b4cf28382d5d
2025-01-04 21:31:44,913 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/a4d70f1f-ab62-4a4c-845c-03d839d2b92f
2025-01-04 21:31:44,934 - DEBUG - ==>Verifying data for policy with id: 03658c27-830e-4e52-b110-748bb9fb741b, fqn: ['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-policy-allow-all-13149519']
2025-01-04 21:31:44,934 - INFO - VN ctest-vn-38741352 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 21:31:44,935 - DEBUG - Verifying the vn in opserver
2025-01-04 21:31:44,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-38741352 virtual network link through opserver 10.0.0.54
2025-01-04 21:31:44,935 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-01-04 21:31:45,246 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-01-04 21:31:45,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-38741352', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-38741352?flat'}
2025-01-04 21:31:45,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-38741352 is found in opserver
2025-01-04 21:31:45,335 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 21:31:45,342 - DEBUG - VRF ids for VN ctest-vn-38741352: {}
2025-01-04 21:31:45,342 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-01-04 21:31:45,349 - DEBUG - Requesting: http://10.0.0.54:8082/domain/734335af-f8cb-4cf6-91cc-546b65e52802
2025-01-04 21:31:45,363 - DEBUG - Requesting: http://10.0.0.54:8082/project/c3cff154-8f6e-4eeb-8f01-b4cf28382d5d
2025-01-04 21:31:45,445 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:45,463 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:45,477 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/457a9c64-8203-4821-93ae-3fbfb886b19b
2025-01-04 21:31:45,487 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/457a9c64-8203-4821-93ae-3fbfb886b19b
2025-01-04 21:31:45,495 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/ceb5a087-2181-495f-91f3-8e242d8bbd8a
2025-01-04 21:31:45,503 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 21:31:45,503 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:45,515 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/457a9c64-8203-4821-93ae-3fbfb886b19b
2025-01-04 21:31:45,542 - INFO - Verified VN network id 9 for VN 4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:45,542 - INFO - Verifications in API Server for VN ctest-vn-40148069 passed
2025-01-04 21:31:45,543 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:45,555 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/457a9c64-8203-4821-93ae-3fbfb886b19b
2025-01-04 21:31:45,566 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/457a9c64-8203-4821-93ae-3fbfb886b19b
2025-01-04 21:31:45,579 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/ceb5a087-2181-495f-91f3-8e242d8bbd8a
2025-01-04 21:31:45,604 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-40148069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31996070', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5483163161876579740', 'uuid-lslong': '10844944059537350699'}, 'enable': 'true', 'created': '2025-01-04T21:31:42', 'last-modified': '2025-01-04T21:31:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.628007'}
2025-01-04 21:31:45,613 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-04 21:31:45,613 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40148069 passed
2025-01-04 21:31:45,613 - DEBUG - ====Verifying policy data for ctest-vn-40148069 in API_Server ======
2025-01-04 21:31:45,613 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2025-01-04 21:31:45,621 - DEBUG - Requesting: http://10.0.0.54:8082/domain/734335af-f8cb-4cf6-91cc-546b65e52802
2025-01-04 21:31:45,638 - DEBUG - Requesting: http://10.0.0.54:8082/project/c3cff154-8f6e-4eeb-8f01-b4cf28382d5d
2025-01-04 21:31:45,721 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/4c181bd8-3d29-459c-9680-fb29c5b4e02b
2025-01-04 21:31:45,734 - DEBUG - ==>Verifying data for policy with id: 03658c27-830e-4e52-b110-748bb9fb741b, fqn: ['default-domain', 'ctest-TestBasicPolicy-31996070', 'ctest-policy-allow-all-13149519']
2025-01-04 21:31:45,734 - INFO - VN ctest-vn-40148069 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-04 21:31:45,734 - DEBUG - Verifying the vn in opserver
2025-01-04 21:31:45,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-40148069 virtual network link through opserver 10.0.0.54
2025-01-04 21:31:45,735 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2025-01-04 21:31:45,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-40148069', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-40148069?flat'}
2025-01-04 21:31:45,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31996070:ctest-vn-40148069 is found in opserver
2025-01-04 21:31:45,761 - DEBUG - Do not have enough data to verify VN in agent
2025-01-04 21:31:45,767 - DEBUG - VRF ids for VN ctest-vn-40148069: {}
2025-01-04 21:31:45,851 - DEBUG - Services list from nova: [