2025-01-27 02:36:57,885 - INFO - Domain Default found not creating
2025-01-27 02:36:58,021 - INFO - Project ctest-TestBasicPolicy-56969722 not found, creating it
2025-01-27 02:36:58,459 - INFO - Created Project:ctest-TestBasicPolicy-56969722, ID : b1b909ae-ec26-46d2-bbb4-f018752505df
2025-01-27 02:36:59,870 - INFO - ================================================================================
2025-01-27 02:36:59,871 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-27 02:36:59,871 - 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-27 02:37:00,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.17': '0'}} with
2025-01-27 02:37:00,127 - INFO - Initial checks done. Running the testcase now
2025-01-27 02:37:00,127 - INFO -
2025-01-27 02:37:00,692 - DEBUG - Response for create_network : {'network': {'id': '36f36b01-d5a5-4190-844b-7c265152313c', 'name': 'ctest-vn-72279470', 'tenant_id': 'b1b909aeec2646d2bbb4f018752505df', 'project_id': 'b1b909aeec2646d2bbb4f018752505df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-vn-72279470'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:37:00,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '8436d201-ac42-41fa-90e0-f10eefe7434f', 'name': '', 'tenant_id': 'b1b909aeec2646d2bbb4f018752505df', 'network_id': '36f36b01-d5a5-4190-844b-7c265152313c', 'ip_version': 4, 'cidr': '66.35.132.192/26', 'allocation_pools': [{'start': '66.35.132.194', 'end': '66.35.132.254'}], 'gateway_ip': '66.35.132.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.35.132.194', 'tags': [], 'project_id': 'b1b909aeec2646d2bbb4f018752505df'}}
2025-01-27 02:37:00,875 - INFO - Created VN ctest-vn-72279470
2025-01-27 02:37:00,931 - DEBUG - VN ctest-vn-72279470 UUID is 36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:01,250 - DEBUG - Response for create_network : {'network': {'id': '36d8fe87-80ed-48a7-8fed-6ca1fcf309b4', 'name': 'ctest-vn-82395375', 'tenant_id': 'b1b909aeec2646d2bbb4f018752505df', 'project_id': 'b1b909aeec2646d2bbb4f018752505df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-vn-82395375'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:37:01,455 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f710220f-497a-4225-9ffb-21e26e108067', 'name': '', 'tenant_id': 'b1b909aeec2646d2bbb4f018752505df', 'network_id': '36d8fe87-80ed-48a7-8fed-6ca1fcf309b4', 'ip_version': 4, 'cidr': '86.123.145.128/26', 'allocation_pools': [{'start': '86.123.145.130', 'end': '86.123.145.190'}], 'gateway_ip': '86.123.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.123.145.130', 'tags': [], 'project_id': 'b1b909aeec2646d2bbb4f018752505df'}}
2025-01-27 02:37:01,472 - INFO - Created VN ctest-vn-82395375
2025-01-27 02:37:01,523 - DEBUG - VN ctest-vn-82395375 UUID is 36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:01,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-72279470, 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-56969722:ctest-vn-82395375, 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-27 02:37:01,977 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36f36b01-d5a5-4190-844b-7c265152313c', 'name': 'ctest-vn-72279470', 'tenant_id': 'b1b909aeec2646d2bbb4f018752505df', 'project_id': 'b1b909aeec2646d2bbb4f018752505df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8436d201-ac42-41fa-90e0-f10eefe7434f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-vn-72279470'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-policy-allow-all-90915127']], 'subnet_ipam': [{'subnet_cidr': '66.35.132.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:37:02,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36d8fe87-80ed-48a7-8fed-6ca1fcf309b4', 'name': 'ctest-vn-82395375', 'tenant_id': 'b1b909aeec2646d2bbb4f018752505df', 'project_id': 'b1b909aeec2646d2bbb4f018752505df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f710220f-497a-4225-9ffb-21e26e108067'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-vn-82395375'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-policy-allow-all-90915127']], 'subnet_ipam': [{'subnet_cidr': '86.123.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:37:02,319 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-27 02:37:02,636 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-27 02:37:02,670 - DEBUG - Requesting: http://10.0.0.28:8082/domain/e62501aa-9f5c-4649-8ee6-32e0d845289e
2025-01-27 02:37:02,684 - DEBUG - Requesting: http://10.0.0.28:8082/project/b1b909ae-ec26-46d2-bbb4-f018752505df
2025-01-27 02:37:02,759 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:02,770 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:02,780 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/0c908ce7-6592-475e-9405-bb96fb38fab4
2025-01-27 02:37:02,788 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/0c908ce7-6592-475e-9405-bb96fb38fab4
2025-01-27 02:37:02,795 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/cb4bc7cf-d64e-4a38-8996-ab30bc81a035
2025-01-27 02:37:02,802 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-27 02:37:02,802 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:02,811 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/0c908ce7-6592-475e-9405-bb96fb38fab4
2025-01-27 02:37:02,829 - INFO - Verified VN network id 7 for VN 36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:02,829 - INFO - Verifications in API Server for VN ctest-vn-72279470 passed
2025-01-27 02:37:02,829 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:02,841 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/0c908ce7-6592-475e-9405-bb96fb38fab4
2025-01-27 02:37:02,848 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/0c908ce7-6592-475e-9405-bb96fb38fab4
2025-01-27 02:37:02,855 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/cb4bc7cf-d64e-4a38-8996-ab30bc81a035
2025-01-27 02:37:02,868 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-72279470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56969722', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3959626153012314512', 'uuid-lslong': '9532849540274729276'}, 'enable': 'true', 'created': '2025-01-27T02:37:00', 'last-modified': '2025-01-27T02:37:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915436'}
2025-01-27 02:37:02,875 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-27 02:37:02,875 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72279470 passed
2025-01-27 02:37:02,875 - DEBUG - ====Verifying policy data for ctest-vn-72279470 in API_Server ======
2025-01-27 02:37:02,875 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-27 02:37:02,881 - DEBUG - Requesting: http://10.0.0.28:8082/domain/e62501aa-9f5c-4649-8ee6-32e0d845289e
2025-01-27 02:37:02,892 - DEBUG - Requesting: http://10.0.0.28:8082/project/b1b909ae-ec26-46d2-bbb4-f018752505df
2025-01-27 02:37:02,963 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36f36b01-d5a5-4190-844b-7c265152313c
2025-01-27 02:37:02,973 - DEBUG - ==>Verifying data for policy with id: 24a43992-7ee7-4615-9efe-624ce2d99d8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-policy-allow-all-90915127']
2025-01-27 02:37:02,973 - INFO - VN ctest-vn-72279470 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 02:37:02,973 - DEBUG - Verifying the vn in opserver
2025-01-27 02:37:02,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-72279470 virtual network link through opserver 10.0.0.28
2025-01-27 02:37:02,973 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-27 02:37:03,266 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-27 02:37:03,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-72279470', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-72279470?flat'}
2025-01-27 02:37:03,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-72279470 is found in opserver
2025-01-27 02:37:03,331 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 02:37:03,336 - DEBUG - VRF ids for VN ctest-vn-72279470: {}
2025-01-27 02:37:03,336 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-27 02:37:03,341 - DEBUG - Requesting: http://10.0.0.28:8082/domain/e62501aa-9f5c-4649-8ee6-32e0d845289e
2025-01-27 02:37:03,352 - DEBUG - Requesting: http://10.0.0.28:8082/project/b1b909ae-ec26-46d2-bbb4-f018752505df
2025-01-27 02:37:03,426 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:03,437 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:03,446 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daff7069-b8a4-4284-8ac7-cdd8e9420a63
2025-01-27 02:37:03,453 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daff7069-b8a4-4284-8ac7-cdd8e9420a63
2025-01-27 02:37:03,460 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/7dd6b2d1-15c9-4d65-8126-4e09d4228d52
2025-01-27 02:37:03,466 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 02:37:03,466 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:03,475 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daff7069-b8a4-4284-8ac7-cdd8e9420a63
2025-01-27 02:37:03,487 - INFO - Verified VN network id 8 for VN 36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:03,488 - INFO - Verifications in API Server for VN ctest-vn-82395375 passed
2025-01-27 02:37:03,488 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:03,497 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daff7069-b8a4-4284-8ac7-cdd8e9420a63
2025-01-27 02:37:03,504 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daff7069-b8a4-4284-8ac7-cdd8e9420a63
2025-01-27 02:37:03,511 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/7dd6b2d1-15c9-4d65-8126-4e09d4228d52
2025-01-27 02:37:03,522 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-82395375', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56969722', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3952188530954684583', 'uuid-lslong': '10371064959893440948'}, 'enable': 'true', 'created': '2025-01-27T02:37:01', 'last-modified': '2025-01-27T02:37:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374086'}
2025-01-27 02:37:03,528 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 02:37:03,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82395375 passed
2025-01-27 02:37:03,529 - DEBUG - ====Verifying policy data for ctest-vn-82395375 in API_Server ======
2025-01-27 02:37:03,529 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-01-27 02:37:03,534 - DEBUG - Requesting: http://10.0.0.28:8082/domain/e62501aa-9f5c-4649-8ee6-32e0d845289e
2025-01-27 02:37:03,544 - DEBUG - Requesting: http://10.0.0.28:8082/project/b1b909ae-ec26-46d2-bbb4-f018752505df
2025-01-27 02:37:03,617 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/36d8fe87-80ed-48a7-8fed-6ca1fcf309b4
2025-01-27 02:37:03,626 - DEBUG - ==>Verifying data for policy with id: 24a43992-7ee7-4615-9efe-624ce2d99d8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-56969722', 'ctest-policy-allow-all-90915127']
2025-01-27 02:37:03,626 - INFO - VN ctest-vn-82395375 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 02:37:03,627 - DEBUG - Verifying the vn in opserver
2025-01-27 02:37:03,627 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-82395375 virtual network link through opserver 10.0.0.28
2025-01-27 02:37:03,627 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-01-27 02:37:03,638 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-82395375', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-82395375?flat'}
2025-01-27 02:37:03,638 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56969722:ctest-vn-82395375 is found in opserver
2025-01-27 02:37:03,649 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 02:37:03,654 - DEBUG - VRF ids for VN ctest-vn-82395375: {}
2025-01-27 02:37:03,707 - DEBUG - Services list from nova: [