2025-01-02 21:10:36,483 - INFO - Domain Default found not creating
2025-01-02 21:10:36,647 - INFO - Project ctest-TestBasicPolicy-36748700 not found, creating it
2025-01-02 21:10:37,137 - INFO - Created Project:ctest-TestBasicPolicy-36748700, ID : c1a34c37-0fd7-416c-bf1b-b33692b294c2
2025-01-02 21:10:38,647 - INFO - ================================================================================
2025-01-02 21:10:38,648 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 21:10:38,648 - 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-02 21:10:38,913 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.5': '0'}} with
2025-01-02 21:10:38,913 - INFO - Initial checks done. Running the testcase now
2025-01-02 21:10:38,913 - INFO -
2025-01-02 21:10:39,476 - DEBUG - Response for create_network : {'network': {'id': '753a5072-9eb7-48cd-8f60-560c0e91c6c5', 'name': 'ctest-vn-55691562', 'tenant_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'project_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-vn-55691562'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 21:10:39,676 - DEBUG - Response for create_subnet : {'subnet': {'id': '52b4001d-4775-4d55-83b7-5bccc0c63ecf', 'name': '', 'tenant_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'network_id': '753a5072-9eb7-48cd-8f60-560c0e91c6c5', 'ip_version': 4, 'cidr': '180.63.254.128/26', 'allocation_pools': [{'start': '180.63.254.130', 'end': '180.63.254.190'}], 'gateway_ip': '180.63.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.63.254.130', 'tags': [], 'project_id': 'c1a34c370fd7416cbf1bb33692b294c2'}}
2025-01-02 21:10:39,699 - INFO - Created VN ctest-vn-55691562
2025-01-02 21:10:39,754 - DEBUG - VN ctest-vn-55691562 UUID is 753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:40,076 - DEBUG - Response for create_network : {'network': {'id': 'f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b', 'name': 'ctest-vn-46811392', 'tenant_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'project_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-vn-46811392'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 21:10:40,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fdd67c5-575e-41b1-a14b-e7810b777500', 'name': '', 'tenant_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'network_id': 'f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b', 'ip_version': 4, 'cidr': '96.63.224.64/26', 'allocation_pools': [{'start': '96.63.224.66', 'end': '96.63.224.126'}], 'gateway_ip': '96.63.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.63.224.66', 'tags': [], 'project_id': 'c1a34c370fd7416cbf1bb33692b294c2'}}
2025-01-02 21:10:40,297 - INFO - Created VN ctest-vn-46811392
2025-01-02 21:10:40,354 - DEBUG - VN ctest-vn-46811392 UUID is f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:40,483 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-55691562, 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-36748700:ctest-vn-46811392, 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-02 21:10:40,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '753a5072-9eb7-48cd-8f60-560c0e91c6c5', 'name': 'ctest-vn-55691562', 'tenant_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'project_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52b4001d-4775-4d55-83b7-5bccc0c63ecf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-vn-55691562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-policy-allow-all-20094469']], 'subnet_ipam': [{'subnet_cidr': '180.63.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 21:10:41,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b', 'name': 'ctest-vn-46811392', 'tenant_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'project_id': 'c1a34c370fd7416cbf1bb33692b294c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8fdd67c5-575e-41b1-a14b-e7810b777500'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-vn-46811392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-policy-allow-all-20094469']], 'subnet_ipam': [{'subnet_cidr': '96.63.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 21:10:41,190 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-02 21:10:41,494 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-02 21:10:41,525 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ff1d9636-669e-42d1-b5ad-a9f17819e12f
2025-01-02 21:10:41,541 - DEBUG - Requesting: http://10.0.0.27:8082/project/c1a34c37-0fd7-416c-bf1b-b33692b294c2
2025-01-02 21:10:41,621 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:41,633 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:41,644 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07a4f0d3-bf05-4a1b-90ef-972e3760408e
2025-01-02 21:10:41,652 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07a4f0d3-bf05-4a1b-90ef-972e3760408e
2025-01-02 21:10:41,660 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/217341b5-d0b2-497c-b778-e85a37db1be2
2025-01-02 21:10:41,668 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 21:10:41,668 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:41,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07a4f0d3-bf05-4a1b-90ef-972e3760408e
2025-01-02 21:10:41,695 - INFO - Verified VN network id 8 for VN 753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:41,695 - INFO - Verifications in API Server for VN ctest-vn-55691562 passed
2025-01-02 21:10:41,695 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:41,707 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07a4f0d3-bf05-4a1b-90ef-972e3760408e
2025-01-02 21:10:41,715 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07a4f0d3-bf05-4a1b-90ef-972e3760408e
2025-01-02 21:10:41,723 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/217341b5-d0b2-497c-b778-e85a37db1be2
2025-01-02 21:10:41,736 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-55691562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36748700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8447152504306092237', 'uuid-lslong': '10331352154971948741'}, 'enable': 'true', 'created': '2025-01-02T21:10:39', 'last-modified': '2025-01-02T21:10:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967284'}
2025-01-02 21:10:41,743 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 21:10:41,744 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55691562 passed
2025-01-02 21:10:41,744 - DEBUG - ====Verifying policy data for ctest-vn-55691562 in API_Server ======
2025-01-02 21:10:41,744 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-02 21:10:41,750 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ff1d9636-669e-42d1-b5ad-a9f17819e12f
2025-01-02 21:10:41,764 - DEBUG - Requesting: http://10.0.0.27:8082/project/c1a34c37-0fd7-416c-bf1b-b33692b294c2
2025-01-02 21:10:41,842 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/753a5072-9eb7-48cd-8f60-560c0e91c6c5
2025-01-02 21:10:41,853 - DEBUG - ==>Verifying data for policy with id: 34c300fd-ade1-4e7f-88ed-4aef1bcc8122, fqn: ['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-policy-allow-all-20094469']
2025-01-02 21:10:41,853 - INFO - VN ctest-vn-55691562 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 21:10:41,853 - DEBUG - Verifying the vn in opserver
2025-01-02 21:10:41,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-55691562 virtual network link through opserver 10.0.0.27
2025-01-02 21:10:41,854 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-02 21:10:42,152 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-02 21:10:42,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-55691562', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-55691562?flat'}
2025-01-02 21:10:42,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-55691562 is found in opserver
2025-01-02 21:10:42,227 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 21:10:42,233 - DEBUG - VRF ids for VN ctest-vn-55691562: {}
2025-01-02 21:10:42,233 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-02 21:10:42,239 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ff1d9636-669e-42d1-b5ad-a9f17819e12f
2025-01-02 21:10:42,253 - DEBUG - Requesting: http://10.0.0.27:8082/project/c1a34c37-0fd7-416c-bf1b-b33692b294c2
2025-01-02 21:10:42,334 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:42,348 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:42,359 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/261f117a-230b-4eb9-b83b-38099afb6dca
2025-01-02 21:10:42,369 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/261f117a-230b-4eb9-b83b-38099afb6dca
2025-01-02 21:10:42,378 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/669389ac-f57f-41d2-adb0-887cb16bc472
2025-01-02 21:10:42,386 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 21:10:42,386 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:42,398 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/261f117a-230b-4eb9-b83b-38099afb6dca
2025-01-02 21:10:42,418 - INFO - Verified VN network id 9 for VN f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:42,418 - INFO - Verifications in API Server for VN ctest-vn-46811392 passed
2025-01-02 21:10:42,418 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:42,432 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/261f117a-230b-4eb9-b83b-38099afb6dca
2025-01-02 21:10:42,441 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/261f117a-230b-4eb9-b83b-38099afb6dca
2025-01-02 21:10:42,450 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/669389ac-f57f-41d2-adb0-887cb16bc472
2025-01-02 21:10:42,467 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-46811392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36748700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17785248084786564620', 'uuid-lslong': '12708541414984492555'}, 'enable': 'true', 'created': '2025-01-02T21:10:40', 'last-modified': '2025-01-02T21:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.448006'}
2025-01-02 21:10:42,475 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 21:10:42,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46811392 passed
2025-01-02 21:10:42,475 - DEBUG - ====Verifying policy data for ctest-vn-46811392 in API_Server ======
2025-01-02 21:10:42,475 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-02 21:10:42,483 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ff1d9636-669e-42d1-b5ad-a9f17819e12f
2025-01-02 21:10:42,501 - DEBUG - Requesting: http://10.0.0.27:8082/project/c1a34c37-0fd7-416c-bf1b-b33692b294c2
2025-01-02 21:10:42,582 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f6d1e4e7-1fe6-4e0c-b05d-cf158d7da60b
2025-01-02 21:10:42,593 - DEBUG - ==>Verifying data for policy with id: 34c300fd-ade1-4e7f-88ed-4aef1bcc8122, fqn: ['default-domain', 'ctest-TestBasicPolicy-36748700', 'ctest-policy-allow-all-20094469']
2025-01-02 21:10:42,593 - INFO - VN ctest-vn-46811392 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 21:10:42,593 - DEBUG - Verifying the vn in opserver
2025-01-02 21:10:42,593 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-46811392 virtual network link through opserver 10.0.0.27
2025-01-02 21:10:42,593 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-02 21:10:42,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-46811392', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-46811392?flat'}
2025-01-02 21:10:42,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36748700:ctest-vn-46811392 is found in opserver
2025-01-02 21:10:42,618 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 21:10:42,623 - DEBUG - VRF ids for VN ctest-vn-46811392: {}
2025-01-02 21:10:42,682 - DEBUG - Services list from nova: [