2025-04-23 13:35:02,199 - INFO - Domain Default found not creating
2025-04-23 13:35:02,311 - INFO - Project ctest-TestBasicPolicy-51614747 not found, creating it
2025-04-23 13:35:02,765 - INFO - Created Project:ctest-TestBasicPolicy-51614747, ID : 6cbff473-6f8f-4d6f-bab4-642ec4615c04
2025-04-23 13:35:04,003 - INFO - ================================================================================
2025-04-23 13:35:04,003 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 13:35:04,003 - 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-04-23 13:35:04,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-23 13:35:04,258 - INFO - Initial checks done. Running the testcase now
2025-04-23 13:35:04,258 - INFO -
2025-04-23 13:35:04,758 - DEBUG - Response for create_network : {'network': {'id': 'dcdc534e-8b33-435b-8ce2-c633fdc02a44', 'name': 'ctest-vn-51844609', 'tenant_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'project_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-vn-51844609'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 13:35:04,905 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c50be15a-44cc-42a2-a8b8-c11d5108ccd2', 'name': '', 'tenant_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'network_id': 'dcdc534e-8b33-435b-8ce2-c633fdc02a44', 'ip_version': 4, 'cidr': '74.102.211.192/26', 'allocation_pools': [{'start': '74.102.211.194', 'end': '74.102.211.254'}], 'gateway_ip': '74.102.211.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.102.211.194', 'tags': [], 'project_id': '6cbff4736f8f4d6fbab4642ec4615c04'}}
2025-04-23 13:35:04,921 - INFO - Created VN ctest-vn-51844609
2025-04-23 13:35:04,976 - DEBUG - VN ctest-vn-51844609 UUID is dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:05,421 - DEBUG - Response for create_network : {'network': {'id': '685908f2-c254-486b-a852-b278e91b80df', 'name': 'ctest-vn-21946524', 'tenant_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'project_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-vn-21946524'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 13:35:05,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e06233b-1c13-4a64-9072-9d18f823ceda', 'name': '', 'tenant_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'network_id': '685908f2-c254-486b-a852-b278e91b80df', 'ip_version': 4, 'cidr': '64.74.111.0/26', 'allocation_pools': [{'start': '64.74.111.2', 'end': '64.74.111.62'}], 'gateway_ip': '64.74.111.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.74.111.2', 'tags': [], 'project_id': '6cbff4736f8f4d6fbab4642ec4615c04'}}
2025-04-23 13:35:05,602 - INFO - Created VN ctest-vn-21946524
2025-04-23 13:35:05,652 - DEBUG - VN ctest-vn-21946524 UUID is 685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:05,788 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-51844609, 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-51614747:ctest-vn-21946524, 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-04-23 13:35:06,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dcdc534e-8b33-435b-8ce2-c633fdc02a44', 'name': 'ctest-vn-51844609', 'tenant_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'project_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c50be15a-44cc-42a2-a8b8-c11d5108ccd2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-vn-51844609'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-policy-allow-all-70100375']], 'subnet_ipam': [{'subnet_cidr': '74.102.211.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 13:35:06,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '685908f2-c254-486b-a852-b278e91b80df', 'name': 'ctest-vn-21946524', 'tenant_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'project_id': '6cbff4736f8f4d6fbab4642ec4615c04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e06233b-1c13-4a64-9072-9d18f823ceda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-vn-21946524'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-policy-allow-all-70100375']], 'subnet_ipam': [{'subnet_cidr': '64.74.111.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 13:35:06,412 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 13:35:06,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 13:35:06,701 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2084c9e3-627e-4a62-8071-8462cc74e9a9
2025-04-23 13:35:06,712 - DEBUG - Requesting: http://10.0.0.38:8082/project/6cbff473-6f8f-4d6f-bab4-642ec4615c04
2025-04-23 13:35:06,781 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:06,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:06,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8376e956-a180-4f67-9553-22cfb657c10a
2025-04-23 13:35:06,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8376e956-a180-4f67-9553-22cfb657c10a
2025-04-23 13:35:06,819 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abfeb5c8-28a8-4e1a-b5ff-5455829124f0
2025-04-23 13:35:06,825 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 13:35:06,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:06,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8376e956-a180-4f67-9553-22cfb657c10a
2025-04-23 13:35:06,846 - INFO - Verified VN network id 8 for VN dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:06,846 - INFO - Verifications in API Server for VN ctest-vn-51844609 passed
2025-04-23 13:35:06,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:06,857 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8376e956-a180-4f67-9553-22cfb657c10a
2025-04-23 13:35:06,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8376e956-a180-4f67-9553-22cfb657c10a
2025-04-23 13:35:06,868 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abfeb5c8-28a8-4e1a-b5ff-5455829124f0
2025-04-23 13:35:06,877 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-51844609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51614747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15914686780028437339', 'uuid-lslong': '10151894436649380420'}, 'enable': 'true', 'created': '2025-04-23T13:35:04', 'last-modified': '2025-04-23T13:35:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.820018'}
2025-04-23 13:35:06,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 13:35:06,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51844609 passed
2025-04-23 13:35:06,883 - DEBUG - ====Verifying policy data for ctest-vn-51844609 in API_Server ======
2025-04-23 13:35:06,883 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 13:35:06,887 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2084c9e3-627e-4a62-8071-8462cc74e9a9
2025-04-23 13:35:06,896 - DEBUG - Requesting: http://10.0.0.38:8082/project/6cbff473-6f8f-4d6f-bab4-642ec4615c04
2025-04-23 13:35:06,969 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcdc534e-8b33-435b-8ce2-c633fdc02a44
2025-04-23 13:35:06,979 - DEBUG - ==>Verifying data for policy with id: 5409b791-59c6-4955-bd55-4008cfbfa72a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-policy-allow-all-70100375']
2025-04-23 13:35:06,979 - INFO - VN ctest-vn-51844609 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 13:35:06,979 - DEBUG - Verifying the vn in opserver
2025-04-23 13:35:06,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-51844609 virtual network link through opserver 10.0.0.38
2025-04-23 13:35:06,980 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 13:35:07,238 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 13:35:07,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-51844609', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-51844609?flat'}
2025-04-23 13:35:07,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-51844609 is found in opserver
2025-04-23 13:35:07,300 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 13:35:07,305 - DEBUG - VRF ids for VN ctest-vn-51844609: {}
2025-04-23 13:35:07,305 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 13:35:07,310 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2084c9e3-627e-4a62-8071-8462cc74e9a9
2025-04-23 13:35:07,320 - DEBUG - Requesting: http://10.0.0.38:8082/project/6cbff473-6f8f-4d6f-bab4-642ec4615c04
2025-04-23 13:35:07,387 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:07,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:07,405 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/97840a8f-0ddf-4fbc-9986-36168e2a897e
2025-04-23 13:35:07,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/97840a8f-0ddf-4fbc-9986-36168e2a897e
2025-04-23 13:35:07,416 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8d4334af-0777-4fef-a3ce-0e9091a64b4d
2025-04-23 13:35:07,421 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 13:35:07,421 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:07,429 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/97840a8f-0ddf-4fbc-9986-36168e2a897e
2025-04-23 13:35:07,440 - INFO - Verified VN network id 9 for VN 685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:07,441 - INFO - Verifications in API Server for VN ctest-vn-21946524 passed
2025-04-23 13:35:07,441 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:07,448 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/97840a8f-0ddf-4fbc-9986-36168e2a897e
2025-04-23 13:35:07,453 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/97840a8f-0ddf-4fbc-9986-36168e2a897e
2025-04-23 13:35:07,459 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8d4334af-0777-4fef-a3ce-0e9091a64b4d
2025-04-23 13:35:07,471 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-21946524', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51614747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7519050891607165035', 'uuid-lslong': '12128952978838880479'}, 'enable': 'true', 'created': '2025-04-23T13:35:05', 'last-modified': '2025-04-23T13:35:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.231269'}
2025-04-23 13:35:07,476 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 13:35:07,476 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21946524 passed
2025-04-23 13:35:07,476 - DEBUG - ====Verifying policy data for ctest-vn-21946524 in API_Server ======
2025-04-23 13:35:07,476 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 13:35:07,481 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2084c9e3-627e-4a62-8071-8462cc74e9a9
2025-04-23 13:35:07,490 - DEBUG - Requesting: http://10.0.0.38:8082/project/6cbff473-6f8f-4d6f-bab4-642ec4615c04
2025-04-23 13:35:07,560 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/685908f2-c254-486b-a852-b278e91b80df
2025-04-23 13:35:07,569 - DEBUG - ==>Verifying data for policy with id: 5409b791-59c6-4955-bd55-4008cfbfa72a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51614747', 'ctest-policy-allow-all-70100375']
2025-04-23 13:35:07,569 - INFO - VN ctest-vn-21946524 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 13:35:07,569 - DEBUG - Verifying the vn in opserver
2025-04-23 13:35:07,569 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-21946524 virtual network link through opserver 10.0.0.38
2025-04-23 13:35:07,569 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 13:35:07,579 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-21946524', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-21946524?flat'}
2025-04-23 13:35:07,579 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51614747:ctest-vn-21946524 is found in opserver
2025-04-23 13:35:07,589 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 13:35:07,593 - DEBUG - VRF ids for VN ctest-vn-21946524: {}
2025-04-23 13:35:07,641 - DEBUG - Services list from nova: [