2025-01-08 14:28:18,864 - INFO - Domain Default found not creating
2025-01-08 14:28:19,012 - INFO - Project ctest-TestBasicPolicy-37977274 not found, creating it
2025-01-08 14:28:19,493 - INFO - Created Project:ctest-TestBasicPolicy-37977274, ID : a3faa2e4-da0d-40f1-9f56-36923bb319d1
2025-01-08 14:28:20,966 - INFO - ================================================================================
2025-01-08 14:28:20,966 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 14:28:20,967 - 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-08 14:28:21,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.22': '0'}} with
2025-01-08 14:28:21,221 - INFO - Initial checks done. Running the testcase now
2025-01-08 14:28:21,221 - INFO -
2025-01-08 14:28:21,764 - DEBUG - Response for create_network : {'network': {'id': 'f6fc61ce-89d8-491e-9d15-a9c89ca943bd', 'name': 'ctest-vn-85838368', 'tenant_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'project_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-vn-85838368'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 14:28:21,926 - DEBUG - Response for create_subnet : {'subnet': {'id': '256288f1-106d-4ada-b552-bd5525e97a34', 'name': '', 'tenant_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'network_id': 'f6fc61ce-89d8-491e-9d15-a9c89ca943bd', 'ip_version': 4, 'cidr': '4.251.4.0/26', 'allocation_pools': [{'start': '4.251.4.2', 'end': '4.251.4.62'}], 'gateway_ip': '4.251.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.251.4.2', 'tags': [], 'project_id': 'a3faa2e4da0d40f19f5636923bb319d1'}}
2025-01-08 14:28:21,944 - INFO - Created VN ctest-vn-85838368
2025-01-08 14:28:21,999 - DEBUG - VN ctest-vn-85838368 UUID is f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:22,326 - DEBUG - Response for create_network : {'network': {'id': '2a5893f2-ae20-48c3-b1ac-e56f99e331c1', 'name': 'ctest-vn-07849453', 'tenant_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'project_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-vn-07849453'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 14:28:22,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '19dca3ac-3180-4334-b4ec-e3f69adae621', 'name': '', 'tenant_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'network_id': '2a5893f2-ae20-48c3-b1ac-e56f99e331c1', 'ip_version': 4, 'cidr': '26.62.135.64/26', 'allocation_pools': [{'start': '26.62.135.66', 'end': '26.62.135.126'}], 'gateway_ip': '26.62.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.62.135.66', 'tags': [], 'project_id': 'a3faa2e4da0d40f19f5636923bb319d1'}}
2025-01-08 14:28:22,528 - INFO - Created VN ctest-vn-07849453
2025-01-08 14:28:22,583 - DEBUG - VN ctest-vn-07849453 UUID is 2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:22,709 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-85838368, 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-37977274:ctest-vn-07849453, 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-08 14:28:23,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6fc61ce-89d8-491e-9d15-a9c89ca943bd', 'name': 'ctest-vn-85838368', 'tenant_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'project_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['256288f1-106d-4ada-b552-bd5525e97a34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-vn-85838368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-policy-allow-all-11042436']], 'subnet_ipam': [{'subnet_cidr': '4.251.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 14:28:23,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a5893f2-ae20-48c3-b1ac-e56f99e331c1', 'name': 'ctest-vn-07849453', 'tenant_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'project_id': 'a3faa2e4da0d40f19f5636923bb319d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19dca3ac-3180-4334-b4ec-e3f69adae621'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-vn-07849453'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-policy-allow-all-11042436']], 'subnet_ipam': [{'subnet_cidr': '26.62.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 14:28:23,455 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 14:28:23,751 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 14:28:23,777 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d8f49559-25a9-493b-8859-4c46e023cbed
2025-01-08 14:28:23,790 - DEBUG - Requesting: http://10.0.0.53:8082/project/a3faa2e4-da0d-40f1-9f56-36923bb319d1
2025-01-08 14:28:23,864 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:23,875 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:23,885 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e710ad7-68b7-4697-9245-ed975b3f1f80
2025-01-08 14:28:23,892 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e710ad7-68b7-4697-9245-ed975b3f1f80
2025-01-08 14:28:23,899 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/01dd3720-7ba6-4cfc-a508-c7f081d040b3
2025-01-08 14:28:23,905 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 14:28:23,905 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:23,913 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e710ad7-68b7-4697-9245-ed975b3f1f80
2025-01-08 14:28:23,926 - INFO - Verified VN network id 8 for VN f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:23,926 - INFO - Verifications in API Server for VN ctest-vn-85838368 passed
2025-01-08 14:28:23,926 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:23,936 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e710ad7-68b7-4697-9245-ed975b3f1f80
2025-01-08 14:28:23,943 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e710ad7-68b7-4697-9245-ed975b3f1f80
2025-01-08 14:28:23,951 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/01dd3720-7ba6-4cfc-a508-c7f081d040b3
2025-01-08 14:28:23,965 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-85838368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37977274', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17797207367165167902', 'uuid-lslong': '11319139917552501693'}, 'enable': 'true', 'created': '2025-01-08T14:28:21', 'last-modified': '2025-01-08T14:28:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973643'}
2025-01-08 14:28:23,973 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 14:28:23,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85838368 passed
2025-01-08 14:28:23,973 - DEBUG - ====Verifying policy data for ctest-vn-85838368 in API_Server ======
2025-01-08 14:28:23,973 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 14:28:23,979 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d8f49559-25a9-493b-8859-4c46e023cbed
2025-01-08 14:28:23,992 - DEBUG - Requesting: http://10.0.0.53:8082/project/a3faa2e4-da0d-40f1-9f56-36923bb319d1
2025-01-08 14:28:24,067 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/f6fc61ce-89d8-491e-9d15-a9c89ca943bd
2025-01-08 14:28:24,080 - DEBUG - ==>Verifying data for policy with id: ff7a0f2f-5ae2-43ee-8d80-0b748f41c8e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-policy-allow-all-11042436']
2025-01-08 14:28:24,080 - INFO - VN ctest-vn-85838368 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 14:28:24,080 - DEBUG - Verifying the vn in opserver
2025-01-08 14:28:24,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-85838368 virtual network link through opserver 10.0.0.53
2025-01-08 14:28:24,080 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-08 14:28:24,378 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-08 14:28:24,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-85838368', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-85838368?flat'}
2025-01-08 14:28:24,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-85838368 is found in opserver
2025-01-08 14:28:24,446 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 14:28:24,451 - DEBUG - VRF ids for VN ctest-vn-85838368: {}
2025-01-08 14:28:24,451 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 14:28:24,457 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d8f49559-25a9-493b-8859-4c46e023cbed
2025-01-08 14:28:24,470 - DEBUG - Requesting: http://10.0.0.53:8082/project/a3faa2e4-da0d-40f1-9f56-36923bb319d1
2025-01-08 14:28:24,542 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:24,554 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:24,566 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ccedbaa1-831b-4fee-ba8f-171020ba0d02
2025-01-08 14:28:24,573 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ccedbaa1-831b-4fee-ba8f-171020ba0d02
2025-01-08 14:28:24,580 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/29588514-bd94-46d3-948b-d51a944d291f
2025-01-08 14:28:24,587 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 14:28:24,587 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:24,598 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ccedbaa1-831b-4fee-ba8f-171020ba0d02
2025-01-08 14:28:24,616 - INFO - Verified VN network id 9 for VN 2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:24,616 - INFO - Verifications in API Server for VN ctest-vn-07849453 passed
2025-01-08 14:28:24,616 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:24,628 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ccedbaa1-831b-4fee-ba8f-171020ba0d02
2025-01-08 14:28:24,637 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ccedbaa1-831b-4fee-ba8f-171020ba0d02
2025-01-08 14:28:24,644 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/29588514-bd94-46d3-948b-d51a944d291f
2025-01-08 14:28:24,655 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-07849453', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37977274', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3051351418056231107', 'uuid-lslong': '12802860108193411521'}, 'enable': 'true', 'created': '2025-01-08T14:28:22', 'last-modified': '2025-01-08T14:28:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416071'}
2025-01-08 14:28:24,662 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 14:28:24,662 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07849453 passed
2025-01-08 14:28:24,662 - DEBUG - ====Verifying policy data for ctest-vn-07849453 in API_Server ======
2025-01-08 14:28:24,662 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2025-01-08 14:28:24,667 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d8f49559-25a9-493b-8859-4c46e023cbed
2025-01-08 14:28:24,678 - DEBUG - Requesting: http://10.0.0.53:8082/project/a3faa2e4-da0d-40f1-9f56-36923bb319d1
2025-01-08 14:28:24,752 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2a5893f2-ae20-48c3-b1ac-e56f99e331c1
2025-01-08 14:28:24,762 - DEBUG - ==>Verifying data for policy with id: ff7a0f2f-5ae2-43ee-8d80-0b748f41c8e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-37977274', 'ctest-policy-allow-all-11042436']
2025-01-08 14:28:24,762 - INFO - VN ctest-vn-07849453 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 14:28:24,762 - DEBUG - Verifying the vn in opserver
2025-01-08 14:28:24,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-07849453 virtual network link through opserver 10.0.0.53
2025-01-08 14:28:24,763 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2025-01-08 14:28:24,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-07849453', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-07849453?flat'}
2025-01-08 14:28:24,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37977274:ctest-vn-07849453 is found in opserver
2025-01-08 14:28:24,784 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 14:28:24,789 - DEBUG - VRF ids for VN ctest-vn-07849453: {}
2025-01-08 14:28:24,847 - DEBUG - Services list from nova: [