2025-01-27 02:25:01,004 - INFO - Domain Default found not creating
2025-01-27 02:25:01,211 - INFO - Project ctest-TestBasicPolicy-25217702 not found, creating it
2025-01-27 02:25:01,772 - INFO - Created Project:ctest-TestBasicPolicy-25217702, ID : 29f6a931-6e8a-4d57-8a1e-485d53963e82
2025-01-27 02:25:03,440 - INFO - ================================================================================
2025-01-27 02:25:03,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-27 02:25:03,440 - 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-27 02:25:03,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with
2025-01-27 02:25:03,714 - INFO - Initial checks done. Running the testcase now
2025-01-27 02:25:03,714 - INFO -
2025-01-27 02:25:04,359 - DEBUG - Response for create_network : {'network': {'id': '390e7b7c-df3b-4391-905e-4bd080302ac4', 'name': 'ctest-vn-89250180', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-89250180'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:25:04,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bed6c036-cea4-45dd-adc1-caa3789b3ca1', 'name': '', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'network_id': '390e7b7c-df3b-4391-905e-4bd080302ac4', 'ip_version': 4, 'cidr': '97.131.186.64/26', 'allocation_pools': [{'start': '97.131.186.66', 'end': '97.131.186.126'}], 'gateway_ip': '97.131.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.131.186.66', 'tags': [], 'project_id': '29f6a9316e8a4d578a1e485d53963e82'}}
2025-01-27 02:25:04,605 - INFO - Created VN ctest-vn-89250180
2025-01-27 02:25:04,663 - DEBUG - VN ctest-vn-89250180 UUID is 390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:05,034 - DEBUG - Response for create_network : {'network': {'id': '66b33e9e-1464-4050-bdf3-8931b3103b72', 'name': 'ctest-vn-53034203', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-53034203'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:25:05,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '54f158a9-f7cd-4fa0-b807-ce527b369f4b', 'name': '', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'network_id': '66b33e9e-1464-4050-bdf3-8931b3103b72', 'ip_version': 4, 'cidr': '214.35.3.0/26', 'allocation_pools': [{'start': '214.35.3.2', 'end': '214.35.3.62'}], 'gateway_ip': '214.35.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.35.3.2', 'tags': [], 'project_id': '29f6a9316e8a4d578a1e485d53963e82'}}
2025-01-27 02:25:05,274 - INFO - Created VN ctest-vn-53034203
2025-01-27 02:25:05,331 - DEBUG - VN ctest-vn-53034203 UUID is 66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:05,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180, 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-25217702:ctest-vn-53034203, 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-27 02:25:05,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '390e7b7c-df3b-4391-905e-4bd080302ac4', 'name': 'ctest-vn-89250180', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bed6c036-cea4-45dd-adc1-caa3789b3ca1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-89250180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015']], 'subnet_ipam': [{'subnet_cidr': '97.131.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:25:06,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66b33e9e-1464-4050-bdf3-8931b3103b72', 'name': 'ctest-vn-53034203', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54f158a9-f7cd-4fa0-b807-ce527b369f4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-53034203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015']], 'subnet_ipam': [{'subnet_cidr': '214.35.3.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 02:25:06,259 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-27 02:25:06,569 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-27 02:25:06,610 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c
2025-01-27 02:25:06,630 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82
2025-01-27 02:25:06,717 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:06,731 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:06,744 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d
2025-01-27 02:25:06,754 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d
2025-01-27 02:25:06,764 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/51d3fdd0-f47b-4934-ba25-911b88011373
2025-01-27 02:25:06,772 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-27 02:25:06,772 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:06,784 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d
2025-01-27 02:25:06,804 - INFO - Verified VN network id 7 for VN 390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:06,804 - INFO - Verifications in API Server for VN ctest-vn-89250180 passed
2025-01-27 02:25:06,804 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:06,817 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d
2025-01-27 02:25:06,826 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d
2025-01-27 02:25:06,836 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/51d3fdd0-f47b-4934-ba25-911b88011373
2025-01-27 02:25:06,852 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25217702', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4111359286087205777', 'uuid-lslong': '10402835548148345540'}, 'enable': 'true', 'created': '2025-01-27T02:25:04', 'last-modified': '2025-01-27T02:25:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087383'}
2025-01-27 02:25:06,860 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-27 02:25:06,860 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89250180 passed
2025-01-27 02:25:06,861 - DEBUG - ====Verifying policy data for ctest-vn-89250180 in API_Server ======
2025-01-27 02:25:06,861 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-27 02:25:06,869 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c
2025-01-27 02:25:06,888 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82
2025-01-27 02:25:06,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4
2025-01-27 02:25:06,984 - DEBUG - ==>Verifying data for policy with id: 4f814c4a-788c-41cf-86f7-6670265c135f, fqn: ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015']
2025-01-27 02:25:06,984 - INFO - VN ctest-vn-89250180 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 02:25:06,984 - DEBUG - Verifying the vn in opserver
2025-01-27 02:25:06,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180 virtual network link through opserver 10.0.0.33
2025-01-27 02:25:06,985 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-27 02:25:07,287 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-27 02:25:07,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180?flat'}
2025-01-27 02:25:07,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180 is found in opserver
2025-01-27 02:25:07,370 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 02:25:07,376 - DEBUG - VRF ids for VN ctest-vn-89250180: {}
2025-01-27 02:25:07,376 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-27 02:25:07,384 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c
2025-01-27 02:25:07,400 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82
2025-01-27 02:25:07,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:07,499 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:07,511 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6
2025-01-27 02:25:07,521 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6
2025-01-27 02:25:07,531 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d6db415f-b496-47f6-b22d-7de19d95b928
2025-01-27 02:25:07,540 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 02:25:07,540 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:07,555 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6
2025-01-27 02:25:07,579 - INFO - Verified VN network id 8 for VN 66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:07,579 - INFO - Verifications in API Server for VN ctest-vn-53034203 passed
2025-01-27 02:25:07,579 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:07,595 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6
2025-01-27 02:25:07,608 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6
2025-01-27 02:25:07,619 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d6db415f-b496-47f6-b22d-7de19d95b928
2025-01-27 02:25:07,639 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25217702', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7400327461367726160', 'uuid-lslong': '13687434539059657586'}, 'enable': 'true', 'created': '2025-01-27T02:25:04', 'last-modified': '2025-01-27T02:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.595573'}
2025-01-27 02:25:07,648 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 02:25:07,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53034203 passed
2025-01-27 02:25:07,648 - DEBUG - ====Verifying policy data for ctest-vn-53034203 in API_Server ======
2025-01-27 02:25:07,648 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-27 02:25:07,657 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c
2025-01-27 02:25:07,675 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82
2025-01-27 02:25:07,756 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72
2025-01-27 02:25:07,771 - DEBUG - ==>Verifying data for policy with id: 4f814c4a-788c-41cf-86f7-6670265c135f, fqn: ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015']
2025-01-27 02:25:07,771 - INFO - VN ctest-vn-53034203 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 02:25:07,771 - DEBUG - Verifying the vn in opserver
2025-01-27 02:25:07,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203 virtual network link through opserver 10.0.0.33
2025-01-27 02:25:07,772 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-27 02:25:07,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203?flat'}
2025-01-27 02:25:07,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203 is found in opserver
2025-01-27 02:25:07,800 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 02:25:07,807 - DEBUG - VRF ids for VN ctest-vn-53034203: {}
2025-01-27 02:25:07,877 - DEBUG - Services list from nova: [