2025-01-08 20:53:00,557 - INFO - Domain Default found not creating
2025-01-08 20:53:00,715 - INFO - Project ctest-TestBasicPolicy-65381192 not found, creating it
2025-01-08 20:53:01,208 - INFO - Created Project:ctest-TestBasicPolicy-65381192, ID : 0d2889e9-0622-4b57-a489-cfdf285afa10
2025-01-08 20:53:02,726 - INFO - ================================================================================
2025-01-08 20:53:02,727 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 20:53:02,727 - 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 20:53:02,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.5': '0'}} with
2025-01-08 20:53:02,983 - INFO - Initial checks done. Running the testcase now
2025-01-08 20:53:02,983 - INFO -
2025-01-08 20:53:03,542 - DEBUG - Response for create_network : {'network': {'id': '9640f0c5-a0da-4011-9ecb-476b9756a33a', 'name': 'ctest-vn-61378496', 'tenant_id': '0d2889e906224b57a489cfdf285afa10', 'project_id': '0d2889e906224b57a489cfdf285afa10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-vn-61378496'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 20:53:03,705 - DEBUG - Response for create_subnet : {'subnet': {'id': '301d5503-7152-4847-b68c-b9b4cf5ce655', 'name': '', 'tenant_id': '0d2889e906224b57a489cfdf285afa10', 'network_id': '9640f0c5-a0da-4011-9ecb-476b9756a33a', 'ip_version': 4, 'cidr': '64.41.35.64/26', 'allocation_pools': [{'start': '64.41.35.66', 'end': '64.41.35.126'}], 'gateway_ip': '64.41.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.41.35.66', 'tags': [], 'project_id': '0d2889e906224b57a489cfdf285afa10'}}
2025-01-08 20:53:03,727 - INFO - Created VN ctest-vn-61378496
2025-01-08 20:53:03,786 - DEBUG - VN ctest-vn-61378496 UUID is 9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:04,090 - DEBUG - Response for create_network : {'network': {'id': '5b835e99-4d07-41b5-81c8-659d79f0a3e2', 'name': 'ctest-vn-48523194', 'tenant_id': '0d2889e906224b57a489cfdf285afa10', 'project_id': '0d2889e906224b57a489cfdf285afa10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-vn-48523194'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 20:53:04,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bab53f8-5534-4018-90e2-9468c9bbd200', 'name': '', 'tenant_id': '0d2889e906224b57a489cfdf285afa10', 'network_id': '5b835e99-4d07-41b5-81c8-659d79f0a3e2', 'ip_version': 4, 'cidr': '75.80.76.192/26', 'allocation_pools': [{'start': '75.80.76.194', 'end': '75.80.76.254'}], 'gateway_ip': '75.80.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.80.76.194', 'tags': [], 'project_id': '0d2889e906224b57a489cfdf285afa10'}}
2025-01-08 20:53:04,323 - INFO - Created VN ctest-vn-48523194
2025-01-08 20:53:04,377 - DEBUG - VN ctest-vn-48523194 UUID is 5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:04,497 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-61378496, 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-65381192:ctest-vn-48523194, 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 20:53:04,811 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9640f0c5-a0da-4011-9ecb-476b9756a33a', 'name': 'ctest-vn-61378496', 'tenant_id': '0d2889e906224b57a489cfdf285afa10', 'project_id': '0d2889e906224b57a489cfdf285afa10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['301d5503-7152-4847-b68c-b9b4cf5ce655'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-vn-61378496'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-policy-allow-all-61343486']], 'subnet_ipam': [{'subnet_cidr': '64.41.35.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 20:53:05,111 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b835e99-4d07-41b5-81c8-659d79f0a3e2', 'name': 'ctest-vn-48523194', 'tenant_id': '0d2889e906224b57a489cfdf285afa10', 'project_id': '0d2889e906224b57a489cfdf285afa10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bab53f8-5534-4018-90e2-9468c9bbd200'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-vn-48523194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-policy-allow-all-61343486']], 'subnet_ipam': [{'subnet_cidr': '75.80.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 20:53:05,261 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-01-08 20:53:05,556 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-01-08 20:53:05,585 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7b2e56ae-8c8c-4beb-abad-960d56c0191c
2025-01-08 20:53:05,599 - DEBUG - Requesting: http://10.0.0.49:8082/project/0d2889e9-0622-4b57-a489-cfdf285afa10
2025-01-08 20:53:05,678 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:05,697 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:05,709 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bb3783f6-130d-4fd7-a2f9-5e5cdc3d032c
2025-01-08 20:53:05,718 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bb3783f6-130d-4fd7-a2f9-5e5cdc3d032c
2025-01-08 20:53:05,726 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9a5476d8-9cd9-47d6-a723-e0c209f4b15a
2025-01-08 20:53:05,735 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 20:53:05,735 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:05,747 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bb3783f6-130d-4fd7-a2f9-5e5cdc3d032c
2025-01-08 20:53:05,765 - INFO - Verified VN network id 8 for VN 9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:05,765 - INFO - Verifications in API Server for VN ctest-vn-61378496 passed
2025-01-08 20:53:05,765 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:05,777 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bb3783f6-130d-4fd7-a2f9-5e5cdc3d032c
2025-01-08 20:53:05,786 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bb3783f6-130d-4fd7-a2f9-5e5cdc3d032c
2025-01-08 20:53:05,796 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9a5476d8-9cd9-47d6-a723-e0c209f4b15a
2025-01-08 20:53:05,811 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-61378496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65381192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10826918235796553745', 'uuid-lslong': '11442317805690987322'}, 'enable': 'true', 'created': '2025-01-08T20:53:03', 'last-modified': '2025-01-08T20:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028548'}
2025-01-08 20:53:05,819 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 20:53:05,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61378496 passed
2025-01-08 20:53:05,819 - DEBUG - ====Verifying policy data for ctest-vn-61378496 in API_Server ======
2025-01-08 20:53:05,819 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-01-08 20:53:05,826 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7b2e56ae-8c8c-4beb-abad-960d56c0191c
2025-01-08 20:53:05,841 - DEBUG - Requesting: http://10.0.0.49:8082/project/0d2889e9-0622-4b57-a489-cfdf285afa10
2025-01-08 20:53:05,922 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9640f0c5-a0da-4011-9ecb-476b9756a33a
2025-01-08 20:53:05,933 - DEBUG - ==>Verifying data for policy with id: 73509b20-a388-4fe9-a392-add59a0f80ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-policy-allow-all-61343486']
2025-01-08 20:53:05,933 - INFO - VN ctest-vn-61378496 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 20:53:05,934 - DEBUG - Verifying the vn in opserver
2025-01-08 20:53:05,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-61378496 virtual network link through opserver 10.0.0.49
2025-01-08 20:53:05,934 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-01-08 20:53:06,248 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-01-08 20:53:06,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-61378496', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-61378496?flat'}
2025-01-08 20:53:06,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-61378496 is found in opserver
2025-01-08 20:53:06,332 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 20:53:06,338 - DEBUG - VRF ids for VN ctest-vn-61378496: {}
2025-01-08 20:53:06,338 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-01-08 20:53:06,345 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7b2e56ae-8c8c-4beb-abad-960d56c0191c
2025-01-08 20:53:06,361 - DEBUG - Requesting: http://10.0.0.49:8082/project/0d2889e9-0622-4b57-a489-cfdf285afa10
2025-01-08 20:53:06,439 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:06,454 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:06,466 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13c69c4f-e7b3-4540-b99b-1436944c97d7
2025-01-08 20:53:06,474 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13c69c4f-e7b3-4540-b99b-1436944c97d7
2025-01-08 20:53:06,483 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/01dcc75b-12c8-4fd6-bb68-b4fb5d1d6f35
2025-01-08 20:53:06,491 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 20:53:06,491 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:06,503 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13c69c4f-e7b3-4540-b99b-1436944c97d7
2025-01-08 20:53:06,522 - INFO - Verified VN network id 9 for VN 5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:06,522 - INFO - Verifications in API Server for VN ctest-vn-48523194 passed
2025-01-08 20:53:06,522 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:06,533 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13c69c4f-e7b3-4540-b99b-1436944c97d7
2025-01-08 20:53:06,543 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/13c69c4f-e7b3-4540-b99b-1436944c97d7
2025-01-08 20:53:06,551 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/01dcc75b-12c8-4fd6-bb68-b4fb5d1d6f35
2025-01-08 20:53:06,565 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-48523194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65381192', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6594218291915866549', 'uuid-lslong': '9351836353264919522'}, 'enable': 'true', 'created': '2025-01-08T20:53:04', 'last-modified': '2025-01-08T20:53:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528227'}
2025-01-08 20:53:06,572 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 20:53:06,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48523194 passed
2025-01-08 20:53:06,573 - DEBUG - ====Verifying policy data for ctest-vn-48523194 in API_Server ======
2025-01-08 20:53:06,573 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-01-08 20:53:06,579 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7b2e56ae-8c8c-4beb-abad-960d56c0191c
2025-01-08 20:53:06,591 - DEBUG - Requesting: http://10.0.0.49:8082/project/0d2889e9-0622-4b57-a489-cfdf285afa10
2025-01-08 20:53:06,674 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5b835e99-4d07-41b5-81c8-659d79f0a3e2
2025-01-08 20:53:06,685 - DEBUG - ==>Verifying data for policy with id: 73509b20-a388-4fe9-a392-add59a0f80ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-65381192', 'ctest-policy-allow-all-61343486']
2025-01-08 20:53:06,685 - INFO - VN ctest-vn-48523194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 20:53:06,685 - DEBUG - Verifying the vn in opserver
2025-01-08 20:53:06,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-48523194 virtual network link through opserver 10.0.0.49
2025-01-08 20:53:06,685 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-01-08 20:53:06,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-48523194', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-48523194?flat'}
2025-01-08 20:53:06,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65381192:ctest-vn-48523194 is found in opserver
2025-01-08 20:53:06,712 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 20:53:06,719 - DEBUG - VRF ids for VN ctest-vn-48523194: {}
2025-01-08 20:53:06,789 - DEBUG - Services list from nova: [