2025-07-13 02:09:25,239 - INFO - Domain Default found not creating
2025-07-13 02:09:25,387 - INFO - Project ctest-TestBasicPolicy-55095591 not found, creating it
2025-07-13 02:09:25,836 - INFO - Created Project:ctest-TestBasicPolicy-55095591, ID : 3e4f111b-cf7a-4577-9fca-c3829bd5b74b
2025-07-13 02:09:27,257 - INFO - ================================================================================
2025-07-13 02:09:27,257 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-13 02:09:27,257 - 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-07-13 02:09:27,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-13 02:09:27,517 - INFO - Initial checks done. Running the testcase now
2025-07-13 02:09:27,517 - INFO -
2025-07-13 02:09:28,057 - DEBUG - Response for create_network : {'network': {'id': 'd0864a51-db3c-4179-93d3-b98bd9726179', 'name': 'ctest-vn-76984362', 'tenant_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'project_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-vn-76984362'], 'port_security_enabled': True, 'description': ''}}
2025-07-13 02:09:28,274 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb89c575-065f-40f6-a42e-dd5887728499', 'name': '', 'tenant_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'network_id': 'd0864a51-db3c-4179-93d3-b98bd9726179', 'ip_version': 4, 'cidr': '136.174.40.0/26', 'allocation_pools': [{'start': '136.174.40.2', 'end': '136.174.40.62'}], 'gateway_ip': '136.174.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.174.40.2', 'tags': [], 'project_id': '3e4f111bcf7a45779fcac3829bd5b74b'}}
2025-07-13 02:09:28,289 - INFO - Created VN ctest-vn-76984362
2025-07-13 02:09:28,340 - DEBUG - VN ctest-vn-76984362 UUID is d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:28,651 - DEBUG - Response for create_network : {'network': {'id': '24a845e3-3bfe-44bd-af0a-d642f4e8eb60', 'name': 'ctest-vn-76884357', 'tenant_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'project_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-vn-76884357'], 'port_security_enabled': True, 'description': ''}}
2025-07-13 02:09:28,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '53fe1f59-7530-4d97-aa0e-add012f956bf', 'name': '', 'tenant_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'network_id': '24a845e3-3bfe-44bd-af0a-d642f4e8eb60', 'ip_version': 4, 'cidr': '27.70.253.64/26', 'allocation_pools': [{'start': '27.70.253.66', 'end': '27.70.253.126'}], 'gateway_ip': '27.70.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.70.253.66', 'tags': [], 'project_id': '3e4f111bcf7a45779fcac3829bd5b74b'}}
2025-07-13 02:09:28,860 - INFO - Created VN ctest-vn-76884357
2025-07-13 02:09:28,912 - DEBUG - VN ctest-vn-76884357 UUID is 24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:29,059 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76984362, 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-55095591:ctest-vn-76884357, 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-07-13 02:09:29,346 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0864a51-db3c-4179-93d3-b98bd9726179', 'name': 'ctest-vn-76984362', 'tenant_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'project_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb89c575-065f-40f6-a42e-dd5887728499'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-vn-76984362'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-policy-allow-all-56182874']], 'subnet_ipam': [{'subnet_cidr': '136.174.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-13 02:09:29,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24a845e3-3bfe-44bd-af0a-d642f4e8eb60', 'name': 'ctest-vn-76884357', 'tenant_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'project_id': '3e4f111bcf7a45779fcac3829bd5b74b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53fe1f59-7530-4d97-aa0e-add012f956bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-vn-76884357'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-policy-allow-all-56182874']], 'subnet_ipam': [{'subnet_cidr': '27.70.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-13 02:09:29,736 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-13 02:09:30,027 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-13 02:09:30,052 - DEBUG - Requesting: http://10.0.0.50:8082/domain/eac9f20a-cdd3-46df-b574-483accdd8921
2025-07-13 02:09:30,064 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e4f111b-cf7a-4577-9fca-c3829bd5b74b
2025-07-13 02:09:30,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:30,146 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:30,155 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc31edb1-867f-45fd-8123-16e2b3073714
2025-07-13 02:09:30,162 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc31edb1-867f-45fd-8123-16e2b3073714
2025-07-13 02:09:30,168 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c06cb913-aff8-41fc-a6b6-e7bf363bf203
2025-07-13 02:09:30,173 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-13 02:09:30,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:30,182 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc31edb1-867f-45fd-8123-16e2b3073714
2025-07-13 02:09:30,195 - INFO - Verified VN network id 8 for VN d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:30,195 - INFO - Verifications in API Server for VN ctest-vn-76984362 passed
2025-07-13 02:09:30,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:30,204 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc31edb1-867f-45fd-8123-16e2b3073714
2025-07-13 02:09:30,212 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fc31edb1-867f-45fd-8123-16e2b3073714
2025-07-13 02:09:30,218 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c06cb913-aff8-41fc-a6b6-e7bf363bf203
2025-07-13 02:09:30,229 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76984362', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55095591', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15025778922199204217', 'uuid-lslong': '10652061553961099641'}, 'enable': 'true', 'created': '2025-07-13T02:09:28', 'last-modified': '2025-07-13T02:09:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900630'}
2025-07-13 02:09:30,235 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-13 02:09:30,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76984362 passed
2025-07-13 02:09:30,236 - DEBUG - ====Verifying policy data for ctest-vn-76984362 in API_Server ======
2025-07-13 02:09:30,236 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-13 02:09:30,240 - DEBUG - Requesting: http://10.0.0.50:8082/domain/eac9f20a-cdd3-46df-b574-483accdd8921
2025-07-13 02:09:30,250 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e4f111b-cf7a-4577-9fca-c3829bd5b74b
2025-07-13 02:09:30,326 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d0864a51-db3c-4179-93d3-b98bd9726179
2025-07-13 02:09:30,337 - DEBUG - ==>Verifying data for policy with id: 012e7b42-1949-442d-94dc-12cd57e5213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-policy-allow-all-56182874']
2025-07-13 02:09:30,337 - INFO - VN ctest-vn-76984362 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-13 02:09:30,337 - DEBUG - Verifying the vn in opserver
2025-07-13 02:09:30,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76984362 virtual network link through opserver 10.0.0.50
2025-07-13 02:09:30,337 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-13 02:09:30,631 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-13 02:09:30,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76984362', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76984362?flat'}
2025-07-13 02:09:30,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76984362 is found in opserver
2025-07-13 02:09:30,689 - DEBUG - Do not have enough data to verify VN in agent
2025-07-13 02:09:30,693 - DEBUG - VRF ids for VN ctest-vn-76984362: {}
2025-07-13 02:09:30,693 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-13 02:09:30,699 - DEBUG - Requesting: http://10.0.0.50:8082/domain/eac9f20a-cdd3-46df-b574-483accdd8921
2025-07-13 02:09:30,713 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e4f111b-cf7a-4577-9fca-c3829bd5b74b
2025-07-13 02:09:30,781 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:30,792 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:30,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c69c85-ed3d-42ad-8cce-7a1e740887b3
2025-07-13 02:09:30,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c69c85-ed3d-42ad-8cce-7a1e740887b3
2025-07-13 02:09:30,819 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8bb7446f-ea94-402c-894d-73a0868a48b5
2025-07-13 02:09:30,826 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-13 02:09:30,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:30,835 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c69c85-ed3d-42ad-8cce-7a1e740887b3
2025-07-13 02:09:30,848 - INFO - Verified VN network id 9 for VN 24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:30,848 - INFO - Verifications in API Server for VN ctest-vn-76884357 passed
2025-07-13 02:09:30,848 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:30,857 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c69c85-ed3d-42ad-8cce-7a1e740887b3
2025-07-13 02:09:30,864 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/57c69c85-ed3d-42ad-8cce-7a1e740887b3
2025-07-13 02:09:30,870 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8bb7446f-ea94-402c-894d-73a0868a48b5
2025-07-13 02:09:30,883 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76884357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55095591', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2641438023719208125', 'uuid-lslong': '12613129289469586272'}, 'enable': 'true', 'created': '2025-07-13T02:09:28', 'last-modified': '2025-07-13T02:09:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.336620'}
2025-07-13 02:09:30,889 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-13 02:09:30,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76884357 passed
2025-07-13 02:09:30,889 - DEBUG - ====Verifying policy data for ctest-vn-76884357 in API_Server ======
2025-07-13 02:09:30,890 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-13 02:09:30,894 - DEBUG - Requesting: http://10.0.0.50:8082/domain/eac9f20a-cdd3-46df-b574-483accdd8921
2025-07-13 02:09:30,906 - DEBUG - Requesting: http://10.0.0.50:8082/project/3e4f111b-cf7a-4577-9fca-c3829bd5b74b
2025-07-13 02:09:30,986 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24a845e3-3bfe-44bd-af0a-d642f4e8eb60
2025-07-13 02:09:30,999 - DEBUG - ==>Verifying data for policy with id: 012e7b42-1949-442d-94dc-12cd57e5213f, fqn: ['default-domain', 'ctest-TestBasicPolicy-55095591', 'ctest-policy-allow-all-56182874']
2025-07-13 02:09:30,999 - INFO - VN ctest-vn-76884357 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-13 02:09:30,999 - DEBUG - Verifying the vn in opserver
2025-07-13 02:09:30,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76884357 virtual network link through opserver 10.0.0.50
2025-07-13 02:09:30,999 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-13 02:09:31,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76884357', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76884357?flat'}
2025-07-13 02:09:31,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55095591:ctest-vn-76884357 is found in opserver
2025-07-13 02:09:31,025 - DEBUG - Do not have enough data to verify VN in agent
2025-07-13 02:09:31,029 - DEBUG - VRF ids for VN ctest-vn-76884357: {}
2025-07-13 02:09:31,082 - DEBUG - Services list from nova: [