2025-03-27 10:51:21,254 - INFO - Domain Default found not creating
2025-03-27 10:51:21,423 - INFO - Project ctest-TestBasicPolicy-60380783 not found, creating it
2025-03-27 10:51:21,932 - INFO - Created Project:ctest-TestBasicPolicy-60380783, ID : 6850f68f-a59e-4e6d-a4a8-fda7a701b905
2025-03-27 10:51:23,637 - INFO - ================================================================================
2025-03-27 10:51:23,637 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 10:51:23,637 - 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-03-27 10:51:23,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.24': '0'}} with
2025-03-27 10:51:23,896 - INFO - Initial checks done. Running the testcase now
2025-03-27 10:51:23,896 - INFO -
2025-03-27 10:51:24,871 - DEBUG - Response for create_network : {'network': {'id': 'ec21f749-e9f7-4859-95df-8f44dab883c5', 'name': 'ctest-vn-48167731', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-48167731'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 10:51:25,117 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a796d42d-87c2-42d5-a793-492b11c13105', 'name': '', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'network_id': 'ec21f749-e9f7-4859-95df-8f44dab883c5', 'ip_version': 4, 'cidr': '180.48.227.0/26', 'allocation_pools': [{'start': '180.48.227.2', 'end': '180.48.227.62'}], 'gateway_ip': '180.48.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.48.227.2', 'tags': [], 'project_id': '6850f68fa59e4e6da4a8fda7a701b905'}}
2025-03-27 10:51:25,142 - INFO - Created VN ctest-vn-48167731
2025-03-27 10:51:25,200 - DEBUG - VN ctest-vn-48167731 UUID is ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:25,522 - DEBUG - Response for create_network : {'network': {'id': '3ce4cf97-0d48-4e92-b359-1776d5ef85cc', 'name': 'ctest-vn-82060410', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-82060410'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 10:51:25,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b2aac60-fef1-4f84-b047-1723a0c8bcef', 'name': '', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'network_id': '3ce4cf97-0d48-4e92-b359-1776d5ef85cc', 'ip_version': 4, 'cidr': '125.134.59.0/26', 'allocation_pools': [{'start': '125.134.59.2', 'end': '125.134.59.62'}], 'gateway_ip': '125.134.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.134.59.2', 'tags': [], 'project_id': '6850f68fa59e4e6da4a8fda7a701b905'}}
2025-03-27 10:51:25,754 - INFO - Created VN ctest-vn-82060410
2025-03-27 10:51:25,807 - DEBUG - VN ctest-vn-82060410 UUID is 3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:25,933 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731, 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-60380783:ctest-vn-82060410, 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-03-27 10:51:26,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec21f749-e9f7-4859-95df-8f44dab883c5', 'name': 'ctest-vn-48167731', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a796d42d-87c2-42d5-a793-492b11c13105'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-48167731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269']], 'subnet_ipam': [{'subnet_cidr': '180.48.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 10:51:26,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ce4cf97-0d48-4e92-b359-1776d5ef85cc', 'name': 'ctest-vn-82060410', 'tenant_id': '6850f68fa59e4e6da4a8fda7a701b905', 'project_id': '6850f68fa59e4e6da4a8fda7a701b905', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b2aac60-fef1-4f84-b047-1723a0c8bcef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-vn-82060410'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269']], 'subnet_ipam': [{'subnet_cidr': '125.134.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 10:51:26,704 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-03-27 10:51:27,051 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-03-27 10:51:27,088 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619
2025-03-27 10:51:27,105 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905
2025-03-27 10:51:27,190 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:27,204 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:27,215 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d
2025-03-27 10:51:27,225 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d
2025-03-27 10:51:27,233 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8d203041-9443-4f5e-8fab-ea907b6dfab0
2025-03-27 10:51:27,241 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 10:51:27,242 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:27,255 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d
2025-03-27 10:51:27,275 - INFO - Verified VN network id 8 for VN ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:27,275 - INFO - Verifications in API Server for VN ctest-vn-48167731 passed
2025-03-27 10:51:27,276 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:27,292 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d
2025-03-27 10:51:27,304 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/0fce6a0c-a98e-4eb4-aeac-d07e70c2394d
2025-03-27 10:51:27,312 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8d203041-9443-4f5e-8fab-ea907b6dfab0
2025-03-27 10:51:27,330 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60380783', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17015152764012415065', 'uuid-lslong': '10799507957347812293'}, 'enable': 'true', 'created': '2025-03-27T10:51:24', 'last-modified': '2025-03-27T10:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096840'}
2025-03-27 10:51:27,338 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 10:51:27,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48167731 passed
2025-03-27 10:51:27,338 - DEBUG - ====Verifying policy data for ctest-vn-48167731 in API_Server ======
2025-03-27 10:51:27,338 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-03-27 10:51:27,346 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619
2025-03-27 10:51:27,360 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905
2025-03-27 10:51:27,445 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ec21f749-e9f7-4859-95df-8f44dab883c5
2025-03-27 10:51:27,457 - DEBUG - ==>Verifying data for policy with id: 7cba4764-98fb-47d3-ad15-753c5588b21a, fqn: ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269']
2025-03-27 10:51:27,457 - INFO - VN ctest-vn-48167731 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 10:51:27,457 - DEBUG - Verifying the vn in opserver
2025-03-27 10:51:27,457 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731 virtual network link through opserver 10.0.0.30
2025-03-27 10:51:27,457 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-03-27 10:51:27,792 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-03-27 10:51:27,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731?flat'}
2025-03-27 10:51:27,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-48167731 is found in opserver
2025-03-27 10:51:27,873 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 10:51:27,880 - DEBUG - VRF ids for VN ctest-vn-48167731: {}
2025-03-27 10:51:27,880 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-03-27 10:51:27,888 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619
2025-03-27 10:51:27,903 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905
2025-03-27 10:51:27,980 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:27,996 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:28,012 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b
2025-03-27 10:51:28,020 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b
2025-03-27 10:51:28,030 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/70e6430f-ccdc-4d10-bc2d-003fc307d395
2025-03-27 10:51:28,039 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 10:51:28,039 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:28,051 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b
2025-03-27 10:51:28,070 - INFO - Verified VN network id 9 for VN 3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:28,070 - INFO - Verifications in API Server for VN ctest-vn-82060410 passed
2025-03-27 10:51:28,070 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:28,083 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b
2025-03-27 10:51:28,092 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1a7e6aa3-03b3-4e11-b04e-25d02ab3830b
2025-03-27 10:51:28,100 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/70e6430f-ccdc-4d10-bc2d-003fc307d395
2025-03-27 10:51:28,117 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60380783', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4387860184635559570', 'uuid-lslong': '12923386404879173068'}, 'enable': 'true', 'created': '2025-03-27T10:51:25', 'last-modified': '2025-03-27T10:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617304'}
2025-03-27 10:51:28,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 10:51:28,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82060410 passed
2025-03-27 10:51:28,126 - DEBUG - ====Verifying policy data for ctest-vn-82060410 in API_Server ======
2025-03-27 10:51:28,126 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-03-27 10:51:28,134 - DEBUG - Requesting: http://10.0.0.30:8082/domain/58022dde-00c0-40ec-bce8-084e3cec1619
2025-03-27 10:51:28,153 - DEBUG - Requesting: http://10.0.0.30:8082/project/6850f68f-a59e-4e6d-a4a8-fda7a701b905
2025-03-27 10:51:28,228 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/3ce4cf97-0d48-4e92-b359-1776d5ef85cc
2025-03-27 10:51:28,242 - DEBUG - ==>Verifying data for policy with id: 7cba4764-98fb-47d3-ad15-753c5588b21a, fqn: ['default-domain', 'ctest-TestBasicPolicy-60380783', 'ctest-policy-allow-all-99853269']
2025-03-27 10:51:28,242 - INFO - VN ctest-vn-82060410 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 10:51:28,242 - DEBUG - Verifying the vn in opserver
2025-03-27 10:51:28,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410 virtual network link through opserver 10.0.0.30
2025-03-27 10:51:28,243 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-03-27 10:51:28,255 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410?flat'}
2025-03-27 10:51:28,255 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60380783:ctest-vn-82060410 is found in opserver
2025-03-27 10:51:28,268 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 10:51:28,273 - DEBUG - VRF ids for VN ctest-vn-82060410: {}
2025-03-27 10:51:28,333 - DEBUG - Services list from nova: [