2025-04-23 15:34:04,433 - INFO - Domain Default found not creating
2025-04-23 15:34:04,584 - INFO - Project ctest-TestBasicPolicy-04802414 not found, creating it
2025-04-23 15:34:05,130 - INFO - Created Project:ctest-TestBasicPolicy-04802414, ID : 1d00a0d4-3743-45a5-99c4-c3936dcd3df8
2025-04-23 15:34:06,803 - INFO - ================================================================================
2025-04-23 15:34:06,803 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 15:34:06,804 - 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 15:34:07,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.192': '0'}} with
2025-04-23 15:34:07,066 - INFO - Initial checks done. Running the testcase now
2025-04-23 15:34:07,066 - INFO -
2025-04-23 15:34:07,807 - DEBUG - Response for create_network : {'network': {'id': 'e7231044-6e65-45a2-8a68-76adc978c81f', 'name': 'ctest-vn-57483763', 'tenant_id': '1d00a0d4374345a599c4c3936dcd3df8', 'project_id': '1d00a0d4374345a599c4c3936dcd3df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-vn-57483763'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:34:08,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ac8ab4a-222c-461e-96c5-6a8f8028026f', 'name': '', 'tenant_id': '1d00a0d4374345a599c4c3936dcd3df8', 'network_id': 'e7231044-6e65-45a2-8a68-76adc978c81f', 'ip_version': 4, 'cidr': '176.249.241.128/26', 'allocation_pools': [{'start': '176.249.241.130', 'end': '176.249.241.190'}], 'gateway_ip': '176.249.241.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.249.241.130', 'tags': [], 'project_id': '1d00a0d4374345a599c4c3936dcd3df8'}}
2025-04-23 15:34:08,054 - INFO - Created VN ctest-vn-57483763
2025-04-23 15:34:08,108 - DEBUG - VN ctest-vn-57483763 UUID is e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:08,427 - DEBUG - Response for create_network : {'network': {'id': '66c58aa7-0942-447d-a0d4-3ebc58f038f5', 'name': 'ctest-vn-03265909', 'tenant_id': '1d00a0d4374345a599c4c3936dcd3df8', 'project_id': '1d00a0d4374345a599c4c3936dcd3df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-vn-03265909'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:34:08,646 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b39d3eb3-3544-4fa1-a5bc-dee19e48b93b', 'name': '', 'tenant_id': '1d00a0d4374345a599c4c3936dcd3df8', 'network_id': '66c58aa7-0942-447d-a0d4-3ebc58f038f5', 'ip_version': 4, 'cidr': '207.173.121.0/26', 'allocation_pools': [{'start': '207.173.121.2', 'end': '207.173.121.62'}], 'gateway_ip': '207.173.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.173.121.2', 'tags': [], 'project_id': '1d00a0d4374345a599c4c3936dcd3df8'}}
2025-04-23 15:34:08,667 - INFO - Created VN ctest-vn-03265909
2025-04-23 15:34:08,724 - DEBUG - VN ctest-vn-03265909 UUID is 66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:08,841 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-57483763, 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-04802414:ctest-vn-03265909, 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 15:34:09,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7231044-6e65-45a2-8a68-76adc978c81f', 'name': 'ctest-vn-57483763', 'tenant_id': '1d00a0d4374345a599c4c3936dcd3df8', 'project_id': '1d00a0d4374345a599c4c3936dcd3df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ac8ab4a-222c-461e-96c5-6a8f8028026f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-vn-57483763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-policy-allow-all-23088582']], 'subnet_ipam': [{'subnet_cidr': '176.249.241.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:34:09,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66c58aa7-0942-447d-a0d4-3ebc58f038f5', 'name': 'ctest-vn-03265909', 'tenant_id': '1d00a0d4374345a599c4c3936dcd3df8', 'project_id': '1d00a0d4374345a599c4c3936dcd3df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b39d3eb3-3544-4fa1-a5bc-dee19e48b93b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-vn-03265909'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-policy-allow-all-23088582']], 'subnet_ipam': [{'subnet_cidr': '207.173.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 15:34:09,612 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 15:34:09,957 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 15:34:09,990 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d411bdb4-33f6-4732-a9b7-559eacf690b0
2025-04-23 15:34:10,004 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d00a0d4-3743-45a5-99c4-c3936dcd3df8
2025-04-23 15:34:10,085 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:10,097 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:10,109 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e65d7fc1-0f9b-4da0-a478-5d8fa7131300
2025-04-23 15:34:10,118 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e65d7fc1-0f9b-4da0-a478-5d8fa7131300
2025-04-23 15:34:10,126 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a9b2c5d9-6843-406c-aab9-2f85fa5a3f2e
2025-04-23 15:34:10,133 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 15:34:10,133 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:10,145 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e65d7fc1-0f9b-4da0-a478-5d8fa7131300
2025-04-23 15:34:10,167 - INFO - Verified VN network id 9 for VN e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:10,167 - INFO - Verifications in API Server for VN ctest-vn-57483763 passed
2025-04-23 15:34:10,168 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:10,188 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e65d7fc1-0f9b-4da0-a478-5d8fa7131300
2025-04-23 15:34:10,200 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e65d7fc1-0f9b-4da0-a478-5d8fa7131300
2025-04-23 15:34:10,209 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a9b2c5d9-6843-406c-aab9-2f85fa5a3f2e
2025-04-23 15:34:10,223 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-57483763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04802414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16655173733042177442', 'uuid-lslong': '9973351863593519135'}, 'enable': 'true', 'created': '2025-04-23T15:34:07', 'last-modified': '2025-04-23T15:34:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.078113'}
2025-04-23 15:34:10,230 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 15:34:10,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57483763 passed
2025-04-23 15:34:10,230 - DEBUG - ====Verifying policy data for ctest-vn-57483763 in API_Server ======
2025-04-23 15:34:10,231 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 15:34:10,239 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d411bdb4-33f6-4732-a9b7-559eacf690b0
2025-04-23 15:34:10,252 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d00a0d4-3743-45a5-99c4-c3936dcd3df8
2025-04-23 15:34:10,330 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e7231044-6e65-45a2-8a68-76adc978c81f
2025-04-23 15:34:10,342 - DEBUG - ==>Verifying data for policy with id: 77f9a8b7-6213-4994-af5e-adf701b17d4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-policy-allow-all-23088582']
2025-04-23 15:34:10,342 - INFO - VN ctest-vn-57483763 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 15:34:10,342 - DEBUG - Verifying the vn in opserver
2025-04-23 15:34:10,342 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-57483763 virtual network link through opserver 10.0.0.33
2025-04-23 15:34:10,342 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-23 15:34:10,678 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-23 15:34:10,734 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-57483763', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-57483763?flat'}
2025-04-23 15:34:10,734 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-57483763 is found in opserver
2025-04-23 15:34:10,746 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 15:34:10,752 - DEBUG - VRF ids for VN ctest-vn-57483763: {}
2025-04-23 15:34:10,752 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 15:34:10,758 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d411bdb4-33f6-4732-a9b7-559eacf690b0
2025-04-23 15:34:10,772 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d00a0d4-3743-45a5-99c4-c3936dcd3df8
2025-04-23 15:34:10,844 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:10,860 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:10,876 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/663d082d-8e84-4a4a-9c04-30c3def9edac
2025-04-23 15:34:10,886 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/663d082d-8e84-4a4a-9c04-30c3def9edac
2025-04-23 15:34:10,894 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0dc360d1-b7a0-4c01-b27b-ff0d61901f56
2025-04-23 15:34:10,901 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 15:34:10,901 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:10,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/663d082d-8e84-4a4a-9c04-30c3def9edac
2025-04-23 15:34:10,927 - INFO - Verified VN network id 10 for VN 66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:10,927 - INFO - Verifications in API Server for VN ctest-vn-03265909 passed
2025-04-23 15:34:10,927 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:10,938 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/663d082d-8e84-4a4a-9c04-30c3def9edac
2025-04-23 15:34:10,949 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/663d082d-8e84-4a4a-9c04-30c3def9edac
2025-04-23 15:34:10,959 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0dc360d1-b7a0-4c01-b27b-ff0d61901f56
2025-04-23 15:34:10,976 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-03265909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04802414', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7405477612300158077', 'uuid-lslong': '11588956719798040821'}, 'enable': 'true', 'created': '2025-04-23T15:34:08', 'last-modified': '2025-04-23T15:34:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566046'}
2025-04-23 15:34:10,983 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 15:34:10,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03265909 passed
2025-04-23 15:34:10,984 - DEBUG - ====Verifying policy data for ctest-vn-03265909 in API_Server ======
2025-04-23 15:34:10,984 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-23 15:34:10,990 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d411bdb4-33f6-4732-a9b7-559eacf690b0
2025-04-23 15:34:11,006 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d00a0d4-3743-45a5-99c4-c3936dcd3df8
2025-04-23 15:34:11,083 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66c58aa7-0942-447d-a0d4-3ebc58f038f5
2025-04-23 15:34:11,098 - DEBUG - ==>Verifying data for policy with id: 77f9a8b7-6213-4994-af5e-adf701b17d4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-04802414', 'ctest-policy-allow-all-23088582']
2025-04-23 15:34:11,098 - INFO - VN ctest-vn-03265909 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 15:34:11,098 - DEBUG - Verifying the vn in opserver
2025-04-23 15:34:11,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-03265909 virtual network link through opserver 10.0.0.33
2025-04-23 15:34:11,098 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-23 15:34:11,111 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-03265909', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-03265909?flat'}
2025-04-23 15:34:11,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04802414:ctest-vn-03265909 is found in opserver
2025-04-23 15:34:11,123 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 15:34:11,129 - DEBUG - VRF ids for VN ctest-vn-03265909: {}
2025-04-23 15:34:11,192 - DEBUG - Services list from nova: [